Bug 34866 - redeployment of webapp deletes context XML descriptor
Summary: redeployment of webapp deletes context XML descriptor
Status: RESOLVED DUPLICATE of bug 34840
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.9
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 16:41 UTC by Martin Kuba
Modified: 2005-06-16 03:39 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kuba 2005-05-11 16:41:24 UTC
I have a context XML descriptor in 
$CATALINA_BASE/conf/Catalina/localhost/mywebapp.xml
and a corresponding webapp in 
$CATALINA_BASE/webapps/mywebapp.war

When I redeploy the mywebapp.war by replacing it, touching it, or from the
manager, the context XML descriptor is removed in that moment.

The webapp cannot start properly then, because context init parameters and JNDI
resources defined in the removed context XML descriptor are not defined then.
Comment 1 Remy Maucherat 2005-05-11 16:44:15 UTC

*** This bug has been marked as a duplicate of 34840 ***
Comment 2 Martin Kuba 2005-05-16 16:48:48 UTC
It is not a duplicate of 34840.

The problem is present, it is imposible now to keep initial
context parameters and database JNDI resources separately from WAR archive
and update WAR.

It is really annoying not to be able update WAR file without loosing
initial context parameters and database connection.

Comment 3 Remy Maucherat 2005-06-16 11:39:38 UTC
This is very similar, and related. Please do not reopen the report again.

*** This bug has been marked as a duplicate of 34840 ***