aspose file tools*
The moose likes Tomcat and the fly likes Apache Tomcat:  startup failed due to previous errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Tomcat:  startup failed due to previous errors" Watch "Apache Tomcat:  startup failed due to previous errors" New topic
Author

Apache Tomcat: startup failed due to previous errors

imran tariq
Greenhorn

Joined: Mar 10, 2010
Posts: 24

Hi,

I am getting the following errors with my tomcat. here is the log.

Mar 9, 2010 10:43:41 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 9, 2010 10:44:05 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 9, 2010 10:44:05 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fddatafeeds] startup failed due to previous errors
Mar 9, 2010 10:44:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 9, 2010 10:44:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fdapps] startup failed due to previous errors
Mar 9, 2010 10:44:36 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\DealerSites\fddealersites\prj\out\fddealermaint_war\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 9, 2010 10:46:28 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive Micrsyse2m.war
Mar 9, 2010 10:46:29 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 9, 2010 10:46:29 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 9, 2010 10:46:29 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Mar 9, 2010 10:46:30 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 9, 2010 10:46:30 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 169872 ms


and in the browser i got this error

HTTP Status 404 -
--------------------------------------------------------------------------------
type Status report
message
description The requested resource () is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.28


I am using spring framework with ant builds. there is no problem with application, builds and DB. Also My context path are right.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

I think there's some more messages that should have displayed before the first line you've posted.

If there weren't, check the localhost log. Sometime messages go there instead of to catalina.out.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

INFO: validateJarFile(C:\DealerSites\fddealersites\prj\out\fddealermaint_war\WEB-INF\lib\servlet-api.jar)

It looks like you've included your own copy of servlet-api.jar in your app, possibly one from a different version of the servlet spec than the one for the version of Tomcat that you're using.

Try removing that jar from your app. Tomcat has it's own copy in tomcat/lib (or tomcat/common/lib if older than version 6).


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
imran tariq
Greenhorn

Joined: Mar 10, 2010
Posts: 24

Here is the full log,


Mar 9, 2010 11:07:07 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\CollabNet\Subversion Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\software\apache-ant-1.7.1\bin;C:\Program Files\Java\jdk1.5.0\bin;C:\svnscripts
Mar 9, 2010 11:07:07 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 9, 2010 11:07:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2140 ms
Mar 9, 2010 11:07:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 9, 2010 11:07:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Mar 9, 2010 11:07:07 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 9, 2010 11:07:33 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 9, 2010 11:07:33 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fddatafeeds] startup failed due to previous errors
Mar 9, 2010 11:08:03 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 9, 2010 11:08:03 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fdapps] startup failed due to previous errors
Mar 9, 2010 11:08:04 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\DealerSites\fddealersites\prj\out\fddealermaint_war\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 9, 2010 11:09:57 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive Micrsyse2m.war
Mar 9, 2010 11:09:57 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 9, 2010 11:09:58 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 9, 2010 11:09:58 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/422 config=null
Mar 9, 2010 11:09:59 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 9, 2010 11:09:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 171965 ms
imran tariq
Greenhorn

Joined: Mar 10, 2010
Posts: 24

After removing INFO: validateJarFile(C:\DealerSites\fddealersites\prj\out\fddealermaint_war\WEB-INF\lib\servlet-api.jar) I restart tomcat and found this...



Mar 10, 2010 4:36:14 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\CollabNet\Subversion Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\software\apache-ant-1.7.1\bin;C:\Program Files\Java\jdk1.5.0\bin;C:\svnscripts
Mar 10, 2010 4:36:15 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 10, 2010 4:36:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3547 ms
Mar 10, 2010 4:36:16 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 10, 2010 4:36:16 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Mar 10, 2010 4:36:16 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 10, 2010 4:36:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 10, 2010 4:36:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fddatafeeds] startup failed due to previous errors
Mar 10, 2010 4:37:12 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 10, 2010 4:37:12 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fdapps] startup failed due to previous errors
Mar 10, 2010 4:39:14 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive Micrsyse2m.war
Mar 10, 2010 4:39:15 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 10, 2010 4:39:15 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 10, 2010 4:39:16 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/172 config=null
Mar 10, 2010 4:39:16 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 10, 2010 4:39:16 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 180796 ms
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
I think I would start by checking for XML formatting errors in the web.xml for the contexts which are failing.

Bill
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
The "Error listenerStart" might indicate problems with any context listeners there might be.


Ping & DNS - my free Android networking tools app
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

I still recommend looking at the localhost logfile. This message isn't that uncommon, and I don't recall any instances I've had where there wasn't more detailed information somewhere.

Getting the servelt-api jar out was a good start though. I hope there's no servlet-impl jar in the WAR.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache Tomcat: startup failed due to previous errors