• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat not starting

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have Tomcat installed on my system. It was working fine till some time back. But after I restarted by system it is not working. This is all that I can see in the logs




It just hangs at this point.

Any clues as to what could be the problem.

Thank you
 
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
# org.apache.catalina.loader.WebappClassLoader validateJarFile
# INFO: validateJarFile(C:\cvs_repo\Documentum\webtop\src\WEB-INF\lib\servlet-api.jar)

It looks like you've got a copy of servlet-api.jar inside one of your web applications.
You shouldn't do that.
Tomcat has it's own copy of this jar file that is shared with all the web applications running under it.
 
Anjali S Sharma
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ben Souther wrote:# org.apache.catalina.loader.WebappClassLoader validateJarFile
# INFO: validateJarFile(C:\cvs_repo\Documentum\webtop\src\WEB-INF\lib\servlet-api.jar)

It looks like you've got a copy of servlet-api.jar inside one of your web applications.
You shouldn't do that.
Tomcat has it's own copy of this jar file that is shared with all the web applications running under it.



Thank you.

Actually this message is not a problem. It was coming even when Tomcat was starting correctly. Now the problem is that tomcat hangs at this point. It does not move forward.

I removed the jar file from WEB-INF/lib. Now this is what comes in the logs. Server is getting hanged at this point


Mar 15, 2010 5:54:45 PM 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: c:\jdk156\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\ActivIdentity\ActivClient\;C:\jdk156\bin;C:\Program Files\Documentum\Shared;c:\ant\bin;C:\Program Files\CVSNT\
Mar 15, 2010 5:54:45 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 15, 2010 5:54:45 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 287 ms
Mar 15, 2010 5:54:45 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 15, 2010 5:54:45 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Mar 15, 2010 5:54:46 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\cvs_repo\Documentum\webtop\src\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 15, 2010 7:03:19 PM 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: c:\jdk156\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\ActivIdentity\ActivClient\;C:\jdk156\bin;C:\Program Files\Documentum\Shared;c:\ant\bin;C:\Program Files\CVSNT\
Mar 15, 2010 7:03:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 15, 2010 7:03:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 288 ms
Mar 15, 2010 7:03:19 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 15, 2010 7:03:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18


 
Anjali S Sharma
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I do <Ctr>+Break on the tomcat console, it gives me the following stack trace



Can someone please let me know what it means?

Thank you
 
Saloon Keeper
Posts: 27762
196
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
Both your log and your stack trace seem to indicate that Tomcat has started and is waiting for client requests.

Try sending a request to http://localhost:8080 and see if the Tomcat home page displays.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic