Hello,

I'm only running 2 applications under tomcat, the manager and one site. I can't imagine that these are competing for resources.

I'm not sure what you're suggesting I do here though. Should I only use antiJarLocking?

Thanks,
Tim

On 5/6/2010 11:52 AM, Martin Gainty wrote:
|antiJARLocking|        ||
If true, the Tomcat classloader will take extra measures to avoid JAR file locking when resources are accessed inside JARs through URLs. This will impact startup time of applications, but could prove to be useful on platforms or configurations where file locking can occur. If not specified, the default value is |false|.


//did you experience a problem as 2 webapps are contending for the same resources and the second webapp will have to 'wait' until the first webapp has completed and released lock on //the webapp's jars..setting antiJarLocking to true will allow both webapps to share these jars

|antiResourceLocking|
If true, Tomcat will prevent any file locking. This will significantly impact startup time of applications, but allows full webapp hot deploy and undeploy on platforms or configurations where file locking can occur. If not specified, the default value is |false|. Please note that setting this to |true| has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668 <http://issues.apache.org/bugzilla/show_bug.cgi?id=37668>. Please note that setting this flag to true in applications that are outside the appBase for the Host (the |webapps| directory by default) will cause the application to be *deleted* on Tomcat shutdown. You probably don't want to do this, so think twice before setting antiResourceLocking=true on a webapp that's outside the appBase for its Host.

(as this will delete apps outside appBase i never set to true)

hth
Martin Gainty
______________________________________________
please do not alter/modify or disrupt this transmission. Thank You




> Date: Thu, 6 May 2010 11:12:30 -0400
> From: to...@genome.med.harvard.edu
> To: users@tomcat.apache.org
> Subject: Tomcat, Windows, And Deployment
>
> Hello,
>
> I'm running Tomcat on windows and am trying to use the tomcat
> manager to redeploy webapps. I've googled for this on numerous
> occassions, and the consensus seems to be that in order for this to work
> you must add:
>
> antiJarLocking="true" and antiResourceLocking="true"
>
> to your context.xml file.
>
> However, this doesn't seem to work for me. I seem to have a variety
> of problems, ranging from it seeming to not pick up changes in the newly
> deployed WAR, to having the server not seem to come back at all.
>
> Has anyone successfully done this? Am I missing something?
>
> Thanks,
> Tim Orme
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

------------------------------------------------------------------------
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. <http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5>

Reply via email to