On 12/08/2011 09:04, exquisite wrote:
> Hello, 
> 
> I followed the below steps from Tomcat Wiki for making my war file as the 
> default webapp, but tomcat is not deploying my war:
> 
> How do I make my web application be the Tomcat default application?
> 
> Method 2.2 
> If you really know what you are doing..

Sigh.

> - leave your war file in CATALINA_BASE/webapps, under its original name
> - turn off autoDeploy and deployOnStartup in your Host element in the 
> server.xml file.
> - explicitly define all application Contexts in 
> server.xml, specifying both path and docBase. You must do this, because 
> you have disabled all the Tomcat auto-deploy mechanisms, and Tomcat will not 
> deploy your applications anymore unless it finds their Context in 
> the server.xml.
> 
> I did exactly like they said in WIKI (autoDeploy=false, 
> deployOnStartup=false) , but after doing all this, Tomcat does not even 
> deploy my war file. here is my host configuration in server.xml after my 
> changes:
> 
> <Host name="localhost" appBase="webapps"
>             unpackWARs="true" autoDeploy="false" deployOnStartup="false"
>             xmlValidation="false" xmlNamespaceAware="false">
>             
>         <Context path="" docBase="myapp"/>

You claim to be deploying a WAR file so I'd expect to see
docBase="myapp.war"

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to