tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otmar Manuela <ot...@caribmedia.com>
Subject Re: Issues with ROOT.xml in Tomcat 6.0.24
Date Mon, 01 Mar 2010 18:10:55 GMT
On 3/1/2010 11:05 AM, Caldarale, Charles R wrote:
>> From: Otmar Manuela [mailto:otmar@caribmedia.com]
>> Subject: Issues with ROOT.xml in Tomcat 6.0.24
>>
>> I have a tomcat instance of Tomcat 6.0.24 running, but whenever I
>> deploy my application in the root context, I can only start it once.
>> If I restart, I get a 404 error "The requested resource is unavailable".
>>      
> What's in the Tomcat logs?
>    
This is the output of catalina.out when the instance starts and ROOT.xml 
is not deleted beforehand:

Mar 1, 2010 8:52:36 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found
  on the java.library.path: 
/usr/local/jre1.6.0_18/lib/i386/server:/usr/local/jre1.6.0_18/lib/i386:/usr/local/jre1.6.0_18/.
./lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Mar 1, 2010 8:52:37 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8110
Mar 1, 2010 8:52:37 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1274 ms
Mar 1, 2010 8:52:37 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 1, 2010 8:52:37 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
Mar 1, 2010 8:52:37 AM org.apache.catalina.startup.HostConfig 
deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Mar 1, 2010 8:52:37 AM org.apache.catalina.startup.HostConfig 
deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Mar 1, 2010 8:52:37 AM org.apache.catalina.startup.HostConfig 
deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Mar 1, 2010 8:52:38 AM org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Deploying web application directory examples
Mar 1, 2010 8:52:38 AM org.apache.catalina.startup.HostConfig 
deployDirectory
INFO: Deploying web application directory docs
Mar 1, 2010 8:52:38 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8110
Mar 1, 2010 8:52:38 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8039
Mar 1, 2010 8:52:38 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/27  config=null
Mar 1, 2010 8:52:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1573 ms

Normally, tomcat takes 6 seconds to start up successfully with the 
application, but here it starts up in just 1.5 seconds.

> What exactly is the procedure you're following to do a "restart"?
>
>    
The "restart" is nothing more than manually running a shutdown script 
(which sets the environment variables and then runs 'catalina.sh stop'), 
wait to make sure the process is gone, then manually run a startup 
script (which sets the environment variables and then runs 'catalina.sh 
start').

> Tomcat 6.0.19 and above always copy the<Context>  element to conf/Catalina/[host]/[appName].xml.
>
>    
Thanks for this info.  Good to know this is normal.

Otmar

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


Mime
View raw message