Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2005

Tip: Looking for answers? Try searching our database.

tomcat 5.5.9 reload context trouble

Thread view: 
darin_dimitrov@hotmail.com - 23 May 2005 21:39 GMT
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?
andyesquire@hotmail.com - 24 May 2005 17:34 GMT
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.

> Hello,
>
[quoted text clipped - 29 lines]
> What am I doing wrong? How can I force tomcat reload an application
> context outside of the webapps directory?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.