File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes 5.54 context autoload strangeness Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "5.54 context autoload strangeness" Watch "5.54 context autoload strangeness" New topic

5.54 context autoload strangeness

Jim Babcock
Ranch Hand

Joined: Dec 03, 2004
Posts: 55

I'm running tomcat 5.54 on FreeBSD with java 1.4.2 and I'm running in a strange situation. When I add a new xml file to $Catalina_home/conf/Catalina/localhost to create a new context using the autoload feature, the xml file disappears when I shutdown/startup the server.

The file is reports.xml and contains:

<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/usr/home/appadmin/reports" path="/reports" workDir="work/Catalina/localhost/reports">


I can work around this for the time being, but this ls making me goofy
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Is /usr/home/appadmin the appBase?

From the docs:
"When using automatic deployment, the docBase defined by an XML Context
file should be outside of the appBase directory. If this is not the case
difficulties may be experienced deploying the web application or the
application may be deployed twice."

Also, have you got a WAR file version of the app in appBase? it might be getting deployed twice and one of them overwrites the XML file?

you're also on the bleeding edge with 5.5.x and 5.5.6 is the most recent release in that line: I'd try upgrading if you want to stick with 5.5. Otherwise, try 5.0.30, and don't let the beta scare you (since the alpha didn't).
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

hm.. i just re-looked. 5.5.4 is not labelled, but 5.5.6 is 'alpha'. I think *both* of them are alpha, frankly.
I agree. Here's the link:
subject: 5.54 context autoload strangeness
It's not a secret anymore!