Using the manager, I deployed the application (removed it from webapps 
dir first and restarted tomcat).

/montage was then available (no /montage_prod)

Stopping & restarting tomcat made /montage disappear as expected.


It's seems like the auto deploy system doesn't check if you had a 
context descriptor xml file for your .war file.  


Robert L Sowders wrote:

>Does this still happen if you don't copy it to the webapps directory and 
>instead deploy it using the manager?
>
>rls
>
>
>
>
>
>Ben Walding <[EMAIL PROTECTED]>
>09/07/2002 01:28 AM
>Please respond to "Tomcat Users List"
>
> 
>        To:     Tomcat Users List <[EMAIL PROTECTED]>
>        cc: 
>        Subject:        Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same 
>webapp to 2 
>contexts instead of 1)
>
>I've found a minor oddity when using auto deployment in 4.1.10.
>
>
>
>Take a simple web application (called montage),  create a 
>montage_prod.war and montage_prod.xml for it and copy them to the 
>webapps directory.  However before doing that, change the  path i.e.
>
><Context path="/montage" docBase="montage_prod.war" debug="0">
>
>Restart tomcat.
>
>TomCat proceeds to merrily deploy montage_prod.war to /montage and this 
>context works.
>
>However it also deploys montage_prod.war to /montage_prod and this 
>context doesn't work properly (I dispute whether it should even exist at 
>all).  It appears to be missing the environment settings from 
>montage_prod.xml.
>
>Admittedly this won't affect many people and I only noticed because I've 
>started using the built-in TomCat manager.
>
>
>Is this intentional behaviour?
>
>(I realise I can rename montage_prod.war to montage.war  and similarly 
>for the xml, but that isn't really the point).
>(I've looked at 
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment,
> 
>but it skates around this question)
>
>Cheers,
>
>
>Ben
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to