menny 发表于 2017-1-21 06:32:48

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
页: [1]
查看完整版本: Tomcat 6 Hot Deploy