I too as think
But I am not sure about that, shared struts will not work.
I have two hosts with three webapps, and everyone use struts.
Certainly it OT, but I ask to explain to me why will not work, briefly

Thank you

DD> Ok, i see your problem.

DD> However, you must be aware that preventing use of WEB-INF/lib is 
DD> handicapping for anyone needing java hosting. Frameworks like struts
DD> won't work if they are shared amongst webapplications. You might simply
DD> endup with your users exploding the .jars and putting their content in
DD> classes/, this way you will not decrease the load at all.
DD> On the other hand, even with only .jsps it is possibile to easily 
DD> exhaust tomcat memory very quickly by mis use of ThreadLocal

DD> And, as far as i know, there is no way to remove use of WEB-INF/lib
DD> unless you hack the tomcat webapp classloader code

DD> Corobitsyn Roman wrote:
>> Hello David.
>> Thank you for reply
>> I am sorry, that I have insufficiently clearly formulated a question
>> We admit, I am a hoster, and at me am hosting buyers.
>> In <TOMCAT_HOME>shared/lib and <TOMCAT_HOME>common/lib I have
>> 3rd libraries of the certain versions.
>> That there were no every possible mistakes, and resources Tomcat were not 
>> exhausted,
>> it is necessary to limit use of catalogue WEB-INF/lib. And for the user 
>> compiled classes
>> to use catalogue <CUSTOM_WEBAPP>/WEB-INF/classes. And there is
>> a question as it can be made the best way
>>
>> Thanx
>>
>>
>> DD> Ok, i suppose by user, you mean the webmaster owning a specific webapp.
>> DD> If so, could you tell me what is the point? It's pretty impossible to do
>> DD> anything without .jar files in a java webapp :)
>> DD> If what you want to avoid is people browsing a uploading .jar files....
>> DD> Unless you have a very badly written webapp it's already impossible :)
>> DD> Corobitsyn Roman wrote:
>>   
>>>> How to limit placing of jar-files in the user webapps?
>>>> In other words, it is necessary to forbid, to the user to place
>>>> jar-files in directory WEB-INF/lib
>>>> You will recommend what suitable ways?
>>>>
>>>> Thanx for any help
>>>>
>>>> BR,
>>>>    Corobitsyn Roman
>>>>
>>>>
>>>>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to