3 Replies Latest reply on Sep 3, 2010 1:43 PM by Sheng Chien

    Seam example NOT run in Tomcat 6

    Ciccio Pasticcio Newbie

      Hi all,
      I want to install seam in tomcat server.
      I've build the JPA example and I've copy the war inside the web-app dir of tomcat, but when I start it I've this error...




      AVVERTENZA: A docBase E:\liferay6.0.1+alfresco3.3\tomcat-6.0.26\webapps\jboss-seam-jpa inside the host appBase has been specified, and will be ignored
      4-mag-2010 8.56.23 org.jboss.seam.servlet.SeamListener contextInitialized
      INFO: Welcome to Seam 2.1.2
      4-mag-2010 8.56.23 org.jboss.seam.deployment.URLScanner handle
      AVVERTENZA: could not read entries
      java.io.FileNotFoundException: E:\liferay6.0.1 alfresco3.3\tomcat-6.0.26\webapps\jboss-seam-jpa\WEB-INF\classes (Impossibile trovare il percorso specificato)
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:203)
              at java.util.zip.ZipFile.<init>(ZipFile.java:234)
              at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)
              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.addChildInternal(ContainerBase.java:791)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
              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:592)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      4-mag-2010 8.56.23 org.jboss.seam.deployment.URLScanner handle
      AVVERTENZA: could not read entries
      java.io.FileNotFoundException: E:\liferay6.0.1 alfresco3.3\tomcat-6.0.26\webapps\jboss-seam-jpa\WEB-INF\lib\jboss-seam-ui.jar (Impossibile trovare il percorso specificato)
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:203)
              at java.util.zip.ZipFile.<init>(ZipFile.java:234)
              at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)
              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.addChildInternal(ContainerBase.java:791)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
              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:592)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      4-mag-2010 8.56.24 org.jboss.seam.deployment.URLScanner handle
      AVVERTENZA: could not read entries
      java.io.FileNotFoundException: E:\liferay6.0.1 alfresco3.3\tomcat-6.0.26\webapps\jboss-seam-jpa\WEB-INF\lib\jboss-seam-debug.jar (Impossibile trovare il percorso specificato)
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:203)
              at java.util.zip.ZipFile.<init>(ZipFile.java:234)
              at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)
              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.addChildInternal(ContainerBase.java:791)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
              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:592)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      4-mag-2010 8.56.24 org.jboss.seam.deployment.URLScanner handle
      AVVERTENZA: could not read entries
      java.io.FileNotFoundException: E:\liferay6.0.1 alfresco3.3\tomcat-6.0.26\webapps\jboss-seam-jpa\WEB-INF\lib\jboss-seam.jar (Impossibile trovare il percorso specificato)
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:203)
              at java.util.zip.ZipFile.<init>(ZipFile.java:234)
              at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)
              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.addChildInternal(ContainerBase.java:791)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
              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:592)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      4-mag-2010 8.56.24 org.jboss.seam.init.Initialization initComponentsFromXmlDocument
      INFO: reading /WEB-INF/components.xml
      4-mag-2010 8.56.24 org.jboss.seam.init.Initialization loadFromResource
      INFO: reading properties from: /seam.properties
      4-mag-2010 8.56.24 org.jboss.seam.Component <init>
      INFO: Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      4-mag-2010 8.56.24 com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/jboss-seam-jpa'
      4-mag-2010 8.56.27 org.apache.catalina.core.StandardContext start
      GRAVE: Error listenerStart
      4-mag-2010 8.56.44 org.apache.catalina.core.StandardContext start
      GRAVE: Context [/jboss-seam-jpa] startup failed due to previous errors






      CAN YOU HELP ME PLEASE?


      VERY THANKS

        • 1. Re: Seam example NOT run in Tomcat 6
          Henning Sprang Newbie

          Two ideas:


          I'm not using windows, but heard that directories with spaces in their path name can be problematic, so first I'd try to remove the space from the appserver install path

          You're probably not deploying in a normal Tomcat, but one customized for Liferay with Alfresco. That might alos make some problems - but I'd rather expect problems with Database access and Datasources in that case - more likely it's the above problem...

          • 2. Re: Seam example NOT run in Tomcat 6
            Ciccio Pasticcio Newbie

            Henning Sprang wrote on May 04, 2010 18:06:


            Two ideas:

            I'm not using windows, but heard that directories with spaces in their path name can be problematic, so first I'd try to remove the space from the appserver install path

            You're probably not deploying in a normal Tomcat, but one customized for Liferay with Alfresco. That might alos make some problems - but I'd rather expect problems with Database access and Datasources in that case - more likely it's the above problem...


            Hi Henning, thanks for your response, now I've rename the folder of tomcat home in liferay6.0.1_alfresco3.3 and the error is NOT appears, but there is a new error:



            INFO: Deploying configuration descriptor jboss-seam-jpa.xml
            5-mag-2010 7.27.20 org.apache.catalina.startup.HostConfig deployDescriptor
            AVVERTENZA: A docBase E:\liferay6.0.1_alfresco3.3\tomcat-6.0.26\webapps\jboss-seam-jpa inside the host appBase has been specified, and will be ignored
            5-mag-2010 7.27.48 org.jboss.seam.servlet.SeamListener contextInitialized
            INFO: Welcome to Seam 2.1.2
            5-mag-2010 7.27.49 com.sun.faces.config.ConfigureListener contextInitialized
            INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/jboss-seam-jpa'
            5-mag-2010 7.27.53 org.apache.catalina.core.StandardContext start
            GRAVE: Error listenerStart
            5-mag-2010 7.27.53 org.apache.catalina.core.StandardContext start
            GRAVE: Context [/jboss-seam-jpa] startup failed due to previous errors



            I hope that you can helop me.


            THANKS

            • 3. Re: Seam example NOT run in Tomcat 6
              Sheng Chien Newbie

              Hello Ciccio,


              I have an alternative way to deploy war on Tomcat without embedded JBoss plugin or any change. However, it only works if you don't need EJB. I posted my configuration on my blog. Here is the link:


              http://shengchien.blogspot.com/2010/06/seam-20-on-tomcat.html


              Hope it is helpful to your case.