File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat not starting correctly

 
Antigoni Tsouri
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am using tomcat 7.0.34 in Spring Source.
er
When I try to start tomcat I got the following errors: java.lang.classnotfoundexception: org.apache.catalina.mbeans.ServerLifecycleListener, which let me to one of the forum's posts.
I tries commenting out the line <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/> in the server.xml that appeared to cause the error, and then restarted the server.
I am now getting the following console output in Spring Source: (tomcat is starting but cannot find the index.jsp of my application )

11 Φεβ 2013 9:10:27 μμ org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
11 Φεβ 2013 9:10:27 μμ org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
11 Φεβ 2013 9:10:27 μμ org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'connectionPassword' to '****' did not find a matching property.
11 Φεβ 2013 9:10:27 μμ org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'driverName' to 'oracle.jdbc.driver.OracleDriver' did not find a matching property.
11 Φεβ 2013 9:10:27 μμ org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property.
11 Φεβ 2013 9:10:27 μμ org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property.
11 Φεβ 2013 9:10:27 μμ org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TradingPlatform' did not find a matching property.
11 Φεβ 2013 9:10:29 μμ org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)
11 Φεβ 2013 9:10:29 μμ org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
11 Φεβ 2013 9:10:29 μμ org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
11 Φεβ 2013 9:10:29 μμ org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2918 ms
11 Φεβ 2013 9:10:29 μμ org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
11 Φεβ 2013 9:10:29 μμ org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
11 Φεβ 2013 9:10:30 μμ org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\TURBO_X\Documents\svnWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\TradingPlatform\WEB-INF\lib\javaee-web-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
11 Φεβ 2013 9:10:33 μμ org.apache.catalina.startup.TaglibUriRule body
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Could you please throw any ideas of what is happening and tomcat can't start correctly?

Thank you in advance.
 
K. Gil
Ranch Hand
Posts: 75
Java Linux Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
11 Φεβ 2013 9:10:30 μμ org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\TURBO_X\Documents\svnWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\TradingPlatform\WEB-INF\lib\javaee-web-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class


Servlet specification 2.3 section 9.7.2
The classloader that a container uses to load a servlet in a WAR must allow the developer to load any resources contained in library JARs within the WAR following normal J2SE semantics using getResource. It must not allow theWAR to override J2SE or Java servlet API classes. It is further recommended that the loader not allow servlets in theWAR access to the web container’s implementation classes. It is recommended also that the application class loader be implemented so that classes and resources packaged within the WAR are loaded in preference to classes and resources residing in container-wide library JARs.


in this case, javaee-web-api-6.0.jar has own class: javax/servlet/Servlet.class which trying to override J2SE / Java servlet API classes.

11 Φεβ 2013 9:10:33 μμ org.apache.catalina.startup.TaglibUriRule body
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener


looks like missing Mojarra ConfigureListener to me...
http://javaserverfaces.java.net/
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic