4 Replies Latest reply on Aug 30, 2008 5:49 PM by Pete Muir

    Seam 2.1 Beta1 and JBoss 4.0 CR1

    Georges Goebel Newbie

      Hi,


      I am struggling with the new seam release and jboss5. I am getting some strange exceptions when I try do deploy an ear (war, jar and third party libs)


      In my war file, I have several Servlet classes and also some seam components (non-ejb) and the jboss-seam-ui.jar and other libs like itext, ...


      In my jar file, I have only ejb (session and entity beans)
      The seam.properties file is in both files


      In my ear file, I have the jboss-seam.jar and other global libs (icefaces, ...)


      When I build this ear and deploy it on jboss 4.2 it works !
      Deploying the same file to jboss 5 produces the following error (see bottom)
      In the seam 2.1A1 distribution, there was a compatibility lib which I had to include in the ear file. This file doesn't existe anymore. So I assume that the jboss-seam.jar does the same than that interoperability jar


      Does anybody have a hint for me, what do I have to do to get it working on JBoss 5 ?
      Does the packiging schema (where the seam jars have to be copied) has changed ?


      Thanks,


      Georges Goebel



      12:11:51,057 WARN  [URLScanner] could not read entries
      java.io.FileNotFoundException: File not found
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:117)
              at java.util.zip.ZipFile.<init>(ZipFile.java:133)
              at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:114)
              at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:99)
              at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:83)
              at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:107)
              at org.jboss.seam.init.Initialization.create(Initialization.java:114)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3862)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:91)
              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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
              at $Proxy35.start(Unknown Source)
              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:44)
              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:63)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:349)
              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:271)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1393)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:443)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:349)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1393)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:456)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
              at org.jboss.Main.boot(Main.java:210)
              at org.jboss.Main$1.run(Main.java:544)
              at java.lang.Thread.run(Thread.java:595)
      12:11:51,109 INFO  [Initialization] reading /WEB-INF/components.xml
      12:11:51,304 ERROR [[/signalisationNew]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: error while reading /WEB-INF/components.xml
              at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:165)
              at org.jboss.seam.init.Initialization.create(Initialization.java:115)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3862)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:90)
              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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
              at $Proxy35.start(Unknown Source)
              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:271)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
              at org.jboss.Main.boot(Main.java:209)
              at org.jboss.Main$1.run(Main.java:544)
              at java.lang.Thread.run(Thread.java:595)