tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From exquisite <>
Subject Re: Cannot make war file as default app
Date Fri, 12 Aug 2011 08:55:14 GMT
Hey Mark,
I think i figured out what's going on with my configuration and I feel that the Tomcat Documentation
is not too clear explaining this particular step.

I have been editing the server.xml in the $CATALINA_HOME/conf  directory, dropped my war
in $CATALINA_HOME/webapps directory but by default tomcat distribution comes with ROOT folder
inside webapps directory and there by its not able to deploy my war file as ROOT.

If I delete/rename the existing ROOT directory and with my same configuration once i start
tomcat, then it created  a new ROOT directory with my war's contents in it. Now it deployed
my war in ROOT directory and im able to access my app as root app/default app. 

As CATALINA_BASE and CATALINA_HOME both point to same location by default, I felt that the
Tomcat documentation needs to be little clarified about this step for other users. For this
step we can add to make sure to delete the folder ROOT in webapps if exists

Please let me know your thoughts or any suggestions for me. 


From: exquisite <>
To: Tomcat Users List <>
Sent: Friday, August 12, 2011 1:32 AM
Subject: Re: Cannot make war file as default app

Hi Mark,

I tried that way as well but i get the same issue. Tomcat does not even deploy my war. All
it says on console is ' Server startup in xxx ms" and stays there forever.

Im getting confused and wondering if there is any mistake in the Tomcat documentation.

Please suggest.


From: Mark Thomas <>
To: Tomcat Users List <>
Sent: Friday, August 12, 2011 1:19 AM
Subject: Re: Cannot make war file as default app

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..


> - 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


To unsubscribe, e-mail:
For additional commands, e-mail:
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message