`

Tomcat 6 Hot Deploy

阅读更多
$CATALINA_BASE/conf/Catalina/localhost/dashboard.xml
<Context 
docBase="D:/mydata/projects/PatchworkSystems/development/Dashboard/webapp"
path="/dashboard"
reloadable="true" 
antiJARLocking="true" 
antiResourceLocking="true" 
debug="1" 
/>
 

 

pay attention to :

antiResourceLocking = "true"


It's because of a side effect with having antiResourceLocking="true" set on your context. If you read the documentation on Tomcat here:

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

"Please note that setting this to true has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668."

which is here:

https://issues.apache.org/bugzilla/show_bug.cgi?id=37668

There is no workaround as far as I know, if you remove the attribute it will allow you automatic loading of yor JSP's again. We set a deploy time subtitution to put the attribute back in for production. Boo, hiss! Anyways if you remove the antiResourceLocking attribute it will solve the problem you're experiencing.

Provide a workaround Apache !!!

 

o-link : http://stackoverflow.com/questions/904877/tomcat-6-hot-deploy-issue

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics