TheGuyNextDoor
TheGuyNextDoor

Reputation: 7937

WebApplication Context files on Tomcat

I have a download service served using Tomcat 5.5.15. It is created by adding an XML file in $TOMCAT_HOME/conf/Catalina/localhost. E.g downloads.xml for http://example.com/app.downloads/

<Context path="/app.downloads" docBase="Z:\Sites\example.com\downloads\"/>

After Tomcat restart the context file is sometimes deleted(not always), and I have to manually recreate the file.

What could be the problem? Is there a was of fixing it?

Upvotes: 0

Views: 631

Answers (2)

ZZ Coder
ZZ Coder

Reputation: 75456

This is a bug in Tomcat. I filed a report for Tomcat 5 but the fix is complicated.

The file is removed during re-deploy, not restart. So you need to make sure your app doesn't get re-deployed. Don't change your app while server is running.

Upvotes: 1

BalusC
BalusC

Reputation: 1108557

That is not the normal case. I also don't expect that you're deploying a WAR for a simple download service. I think that your Tomcat instance is controlled by something else, for example an IDE such as Eclipse. You shouldn't do that for production as well. If you run Tomcat standalone, the problem should be solved.

Upvotes: 1

Related Questions