You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/09/17 17:12:12 UTC
DO NOT REPLY [Bug 31277] New: -
Applciation deployed twice after restart if path doesn't match war filename
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31277>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31277
Applciation deployed twice after restart if path doesn't match war filename
Summary: Applciation deployed twice after restart if path doesn't
match war filename
Product: Tomcat 5
Version: 5.0.28
Platform: Alpha
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Webapps:Manager
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: peter.edwards@astrazeneca.com
If you upload a war file using the HTML manager interface it places the war
file in the webapps directory. It also extracts the context.xml file and places
this in conf/Catalina/localhost using the war file to generate the new
filename. So if the war file is called MyApp.war, the context file is
MyApp.xml. So far, so good.
If the context file declares the path to be "/myapp" the application is
deployed in the context /myapp.
Now, if you restart the server you get two instances of your application. One
because of the MyApp.war file in webapps - this is deployed as /MyApp. The
second is due to the context file (MyApp.xml) but this deploys as /myapp.
I don't know what the correct behaviour should be but the restriction is that
your path must be the same as the war filename.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org