D
darin_dimitrov
Hello,
I cannot make tomcat reload the context when web.xml file changes. I
tried creating a simple project:
D:\work\test\----- META-INF
| |
| --- context.xml
|
----- WEB-INF
|
--- web.xml
and configured a context in tomcat:
D:\tomcat-5.5.9\conf\Catalina\localhost\test.xml
<Context path="/test" reloadable="true" docBase="d:\work\test"
workDir="d:\work\test" />
d:\work\test\META-INF\context.xml
<Context path="">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>META-INF/context.xml</WatchedResource>
</Context>
Now, when I change web.xml for my project, no context reload is
triggered. What is interesting to note is that when I move my project
under the webapps directory of tomcat and no longer use test.xml file,
the context is successfully reloaded when I change web.xml.
What am I doing wrong? How can I force tomcat reload an application
context outside of the webapps directory?
I cannot make tomcat reload the context when web.xml file changes. I
tried creating a simple project:
D:\work\test\----- META-INF
| |
| --- context.xml
|
----- WEB-INF
|
--- web.xml
and configured a context in tomcat:
D:\tomcat-5.5.9\conf\Catalina\localhost\test.xml
<Context path="/test" reloadable="true" docBase="d:\work\test"
workDir="d:\work\test" />
d:\work\test\META-INF\context.xml
<Context path="">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>META-INF/context.xml</WatchedResource>
</Context>
Now, when I change web.xml for my project, no context reload is
triggered. What is interesting to note is that when I move my project
under the webapps directory of tomcat and no longer use test.xml file,
the context is successfully reloaded when I change web.xml.
What am I doing wrong? How can I force tomcat reload an application
context outside of the webapps directory?