4 Replies Latest reply on Sep 15, 2010 2:12 PM by xsa lefter

    Seam context do not starts in tomcat 6x

    Tiago Emerick Newbie

      Hi guys


      i have a seam application running in a jboss 5. recently i had to migrate to a servlet container(tomcat 6). after configure all xml, transactions, jars and everything else, i just try to start tomcat and it seems that everything works fine(no exceptions was thrown), but i cant access the application.
      taking a best look in console i noticed that the seam context was not initialized, but no erros happens.


      im using a mac snow leopard, eclipse galileo (without jboss tools). - (i dont know if it make any difference..)


      anyone knows anything about that?

        • 1. Re: Seam context do not starts in tomcat 6x
          Tiago Emerick Newbie

          news...


          i put my application to run in a fedora OS and using JBoss Developer Studio.
          first, my app run in a JBoss 5 and then i do the last same configuration to tomcat.
          at this time i get a exception. better, i think...


          anyone knows what is this exception?



          13/09/2010 18:55:15 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: /home/tiago.emerick/Development/sdk/jdk1.6.0_18/jre/lib/i386/server:/home/tiago.emerick/Development/sdk/jdk1.6.0_18/jre/lib/i386:/home/tiago.emerick/Development/sdk/jdk1.6.0_18/jre/../lib/i386:/usr/lib/xulrunner-1.9.1:/usr/java/packages/lib/i386:/lib:/usr/lib
          13/09/2010 18:55:15 org.apache.tomcat.util.digester.SetPropertiesRule begin
          WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Seam' did not find a matching property.
          13/09/2010 18:55:15 org.apache.coyote.http11.Http11Protocol init
          INFO: Initializing Coyote HTTP/1.1 on http-8080
          13/09/2010 18:55:15 org.apache.catalina.startup.Catalina load
          INFO: Initialization processed in 608 ms
          13/09/2010 18:55:15 org.apache.catalina.core.StandardService start
          INFO: Starting service Catalina
          13/09/2010 18:55:15 org.apache.catalina.core.StandardEngine start
          INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
          log4j:WARN No appenders could be found for logger (javax.servlet.ServletContextListener).
          log4j:WARN Please initialize the log4j system properly.
          13/09/2010 18:55:18 org.apache.catalina.core.StandardContext listenerStart
          SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.SecurityException: class "javax.ejb.Stateless"'s signer information does not match signer information of other classes in the same package
               at java.lang.ClassLoader.checkCerts(ClassLoader.java:807)
               at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)
               at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626)
               at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
               at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
               at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
               at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
               at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
               at java.security.AccessController.doPrivileged(Native Method)
               at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1503)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
               at java.lang.Class.forName0(Native Method)
               at java.lang.Class.forName(Class.java:247)
               at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
               at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
               at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
               at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:370)
               at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:181)
               at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
               at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
               at java.lang.Class.initAnnotationsIfNecessary(Class.java:3070)
               at java.lang.Class.getAnnotations(Class.java:3050)
               at org.jboss.seam.deployment.ClassDescriptor.<init>(ClassDescriptor.java:31)
               at org.jboss.seam.deployment.AbstractScanner$Handler.getClassDescriptor(AbstractScanner.java:118)
               at org.jboss.seam.deployment.AbstractScanner$Handler.handle(AbstractScanner.java:60)
               at org.jboss.seam.deployment.AbstractScanner$Handler.handle(AbstractScanner.java:90)
               at org.jboss.seam.deployment.AbstractScanner.handle(AbstractScanner.java:212)
               at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:129)
               at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)
               at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)
               at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113)
               at org.jboss.seam.init.Initialization.create(Initialization.java:132)
               at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
               at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
               at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
               at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
               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:519)
               at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
               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:597)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
          13/09/2010 18:55:18 com.sun.faces.config.ConfigureListener contextInitialized
          INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/Seam'
          13/09/2010 18:55:20 com.sun.faces.spi.InjectionProviderFactory getProviderFromEntry
          SEVERE: JSF1030: The specified InjectionProvider implementation 'com.sun.faces.vendor.GlassFishInjectionProvider' cannot be loaded.
          13/09/2010 18:55:22 org.apache.catalina.core.StandardContext start
          SEVERE: Error listenerStart
          13/09/2010 18:55:22 org.apache.catalina.core.StandardContext start
          SEVERE: Context [/Seam] startup failed due to previous errors
          13/09/2010 18:55:22 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
          SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
          s

          • 2. Re: Seam context do not starts in tomcat 6x
            xsa lefter Newbie

            Hmm.. Do you used WAR, or EAR mode? I mean, do you used EJB in your project? I never get this exception in tomcat, and this exception is strange for me:


            ....
            java.lang.SecurityException: class "javax.ejb.Stateless"'s signer information does not match signer information of other classes in the same package
                 at java.lang.ClassLoader.checkCerts(ClassLoader.java:807)
            ....
            



            And which version of seam do you used?

            • 3. Re: Seam context do not starts in tomcat 6x
              Tiago Emerick Newbie

              no. i do not use EJB.
              seam version: 2.2.0.


              i searched something about it on google and i did find something related it.
              some people says that its a jar conflict and i think so, but i dont know what jar is causing that.

              • 4. Re: Seam context do not starts in tomcat 6x
                xsa lefter Newbie

                Do you follow all Dan Allen's post about running Seam Apps in Tomcat?