8 Replies Latest reply on Dec 18, 2007 8:47 AM by joergvf

    Tomcat 6 startup problem

    joergvf

      Hi,

      I just tried the JBossTools 2.0.0 GA with a new JSF project (using the jsf12KickStart template) and Tomcat 6.0.14. I was able to configure the server, but when I try to start it up with my project, it says:

      18.12.2007 11:28:35 org.apache.catalina.core.AprLifecycleListener init
      INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/../lib/i386:/usr/lib/xulrunner-1.8.1.4
      18.12.2007 11:28:36 org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      18.12.2007 11:28:36 org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 695 ms
      18.12.2007 11:28:36 org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      18.12.2007 11:28:36 org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
      18.12.2007 11:28:37 com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Sun's JavaServer Faces implementation (1.2_05-b06-FCS) for context '/ZASTMock'
      18.12.2007 11:28:37 com.sun.faces.config.ConfigureListener contextInitialized
      WARNUNG: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
      18.12.2007 11:28:38 org.apache.catalina.core.StandardContext listenerStart
      SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.LinkageError: loader constraints violated when linking javax/el/ELResolver class
       at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:397)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:189)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:516)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      18.12.2007 11:28:38 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Error listenerStart
      18.12.2007 11:28:38 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Context [/ZASTMock] startup failed due to previous errors
      18.12.2007 11:28:38 org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      18.12.2007 11:28:38 org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      18.12.2007 11:28:39 org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/222 config=null
      18.12.2007 11:28:39 org.apache.catalina.startup.Catalina start
      INFO: Server startup in 3152 ms
      

      Does anybody have an idea what Tomcat is complaining about?
      Thanks for any hints,
      Jörg

        • 1. Re: Tomcat 6 startup problem
          maxandersen

          looks like some jar conflict between jars.

          Try using the "withoutlibs" option for the kickstart.

          • 2. Re: Tomcat 6 startup problem
            joergvf

            Thanks for your answer.

            "max.andersen@jboss.com" wrote:
            looks like some jar conflict between jars.

            Try using the "withoutlibs" option for the kickstart.


            OK I tried that, but now I get
            18.12.2007 14:08:48 org.apache.catalina.core.AprLifecycleListener init
            INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/../lib/i386:/usr/lib/xulrunner-1.8.1.4
            18.12.2007 14:08:48 org.apache.coyote.http11.Http11Protocol init
            INFO: Initializing Coyote HTTP/1.1 on http-8080
            18.12.2007 14:08:48 org.apache.catalina.startup.Catalina load
            INFO: Initialization processed in 884 ms
            18.12.2007 14:08:48 org.apache.catalina.core.StandardService start
            INFO: Starting service Catalina
            18.12.2007 14:08:48 org.apache.catalina.core.StandardEngine start
            INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
            18.12.2007 14:08:49 org.apache.catalina.core.StandardContext listenerStart
            SCHWERWIEGEND: 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:1358)
             at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
             at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3773)
             at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
             at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
             at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
             at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
             at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
             at org.apache.catalina.core.StandardService.start(StandardService.java:516)
             at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
             at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
             at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
            18.12.2007 14:08:49 org.apache.catalina.core.StandardContext listenerStart
            SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)
            18.12.2007 14:08:49 org.apache.catalina.core.StandardContext start
            SCHWERWIEGEND: Error listenerStart
            18.12.2007 14:08:49 org.apache.catalina.core.StandardContext start
            SCHWERWIEGEND: Context [/ZASTMock2] startup failed due to previous errors
            18.12.2007 14:08:49 org.apache.coyote.http11.Http11Protocol start
            INFO: Starting Coyote HTTP/1.1 on http-8080
            18.12.2007 14:08:49 org.apache.jk.common.ChannelSocket init
            INFO: JK: ajp13 listening on /0.0.0.0:8009
            18.12.2007 14:08:49 org.apache.jk.server.JkMain start
            INFO: Jk running ID=0 time=1/154 config=null
            18.12.2007 14:08:49 org.apache.catalina.startup.Catalina start
            INFO: Server startup in 1023 ms
            

            Seems like I now have to manually configure some jar somewhere, I guess?

            • 3. Re: Tomcat 6 startup problem
              maxandersen

              this is some JSF 1.1 vs JSF 1.2 vs. Myfaces vs ref-implementation issue.

              I'm not sure what Tomcat 6 uses now a days.

              • 4. Re: Tomcat 6 startup problem
                joergvf

                 

                "max.andersen@jboss.com" wrote:
                this is some JSF 1.1 vs JSF 1.2 vs. Myfaces vs ref-implementation issue.

                I'm not sure what Tomcat 6 uses now a days.

                So it seems Tomcat 6 isn't really a recommendable option with JBoosTools. I noticed this as well when I tried it with plain Eclipse WTP (Tomcat 5 did work).

                • 5. Re: Tomcat 6 startup problem
                  maxandersen

                  This is a setup issue - tell me what Tomcat 6 expects and I'll you which option to use (sorry - i'm not a big tomcat 6 user)

                  • 6. Re: Tomcat 6 startup problem
                    joergvf

                    I got it to work with the original jsf12KickStart template with libraries, by manually removing el-api.jar from WebContent/WEB-INF/lib.

                    • 7. Re: Tomcat 6 startup problem
                      maxandersen

                      so kickstart without libraries failed ?

                      Could you please report that in jira so we can get it fixed.

                      • 8. Re: Tomcat 6 startup problem
                        joergvf

                        Not sure I picked the correct component, but here it is: http://jira.jboss.com/jira/browse/JBIDE-1525