1 Reply Latest reply on Apr 12, 2007 9:21 AM by gressho

    Jboss 5 Beta2 and JBoss Seam 1.2.1GA

    gressho Newbie

      Hello,

      after reviewing earlier entries I thought it would be possible to deploy my
      application in JBoss 5 Beta2. First thing that occurred was the SeamInterceptor
      was not found! My application was generated by seam-gen, so the entries in
      application.xml are available and the jboss-seam.jar is in the ear file as well.
      I managed to get around this by moving jboss-seam.jar to server/default/lib.
      Now the EJB's are loaded, it's the war file now making problems!
      I thought (as mentioned earlier) I should remove el-*.jar from application.xml
      and the ear file but that didn't work: JBoss simply stopped while deploying
      the war. Other problems occur as well:

      14:03:01,056 INFO [Scanner] scanning: vfsfile:/home/gressho/Programs/jboss-5.0.0.Beta2/server/default/deploy/miami.ear/miami.war/WEB-INF/lib/jboss-seam-ui.jar
      14:03:01,056 WARN [Scanner] could not read entries
      java.util.zip.ZipException: No such file or directory
       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.Scanner.handleArchive(Scanner.java:132)
       at org.jboss.seam.deployment.Scanner.scan(Scanner.java:118)
       at org.jboss.seam.deployment.ComponentScanner.getClasses(ComponentScanner.java:39)
       at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:585)
       at org.jboss.seam.init.Initialization.init(Initialization.java:490)
      


      This message happens several times, for every of the jboss-seam-*.jar files...

      Is there some recipe to get around this problems?

      Best wishes

      Werner Gresshoff

        • 1. Re: Jboss 5 Beta2 and JBoss Seam 1.2.1GA
          gressho Newbie

          Hello,

          after following the instructions in the manual and additionally adding the commons-digester-1.6.jar and commons-beanutils-1.7.0.jar to the ear and application.xml
          it all reduces to the following error:

          12:25:29,235 ERROR [[/miami]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.NullPointerException
           at org.jboss.seam.init.Initialization.installComponents(Initialization.java:835)
           at org.jboss.seam.init.Initialization.init(Initialization.java:503)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
           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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
           at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
           at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:298)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:138)
           at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:367)
           at org.jboss.web.deployers.WebModule.startModule(WebModule.java:104)
           at org.jboss.web.deployers.WebModule.start(WebModule.java:80)
           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:184)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
           at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
           at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:238)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:335)
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:205)
           at org.jboss.system.ServiceController.doChange(ServiceController.java:656)
           at org.jboss.system.ServiceController.start(ServiceController.java:431)
           at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:142)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:103)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
           at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:56)
           at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
           at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
           at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
           at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
           at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
           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.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
           at org.jboss.profileservice.aop.MainDeployerAspect.process(MainDeployerAspect.java:53)
           at org.jboss.aop.advice.org.jboss.profileservice.aop.MainDeployerAspect_z_process_1791140146.invoke(MainDeployerAspect_z_process_1791140146.java)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at AOPContainerProxy$0.process(AOPContainerProxy$0.java)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:371)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:247)
           at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
           at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403)
           at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342)
           at org.jboss.Main.boot(Main.java:210)
           at org.jboss.Main$1.run(Main.java:522)
           at java.lang.Thread.run(Thread.java:595)
          12:25:29,239 ERROR [StandardContext] Error listenerStart
          12:25:29,239 ERROR [StandardContext] Context [/miami] startup failed due to previous errors
          12:25:29,487 WARN [config] Unable to process deployment descriptor for context 'null'
          


          I think, the warnings regarding
          vfsfile
          problems can be safely ignored,
          but how can I deal with the mentioned error?

          Thanks

          Werner