tomcat 5.5.9 reload context trouble

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?
 
A

andyesquire

Have you tried putting the context file under
$CATALINA_HOME\conf\Catalina\localhost (or whatever virtual host your
using) ?

I wasted about two days trying to get JDBC working using a context file
local to the web app, searching usenet lots of other ppl had the same
problem, I never found the solution.

My point is maybe the code for handling context files inside the web
app needs some work....

Andy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top