• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Apache Tomcat: startup failed due to previous errors

 
Greenhorn
Posts: 24
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 28418
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
imran tariq
Greenhorn
Posts: 24
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I would start by checking for XML formatting errors in the web.xml for the contexts which are failing.

Bill
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "Error listenerStart" might indicate problems with any context listeners there might be.
 
Tim Holloway
Saloon Keeper
Posts: 28418
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic