Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3911

zipped ear files cause seam NullPointerException on deployment

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2.SP1
    • Fix Version/s: The future
    • Component/s: None
    • Labels:
      None
    • Environment:

      Jboss 5.0.0-GA, jdk 1.6.0_07

      Description

      A webapp using seam that is deployed as a zipped ear fails to deploy. First you get an exception like this for each war that uses seam:

      15:55:08,634 WARN [URLScanner] could not read entries
      java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:114)
      at java.util.zip.ZipFile.<init>(ZipFile.java:131)
      at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:111)
      at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:98)
      at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:81)
      at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrateg
      y.java:67)
      at org.jboss.seam.init.Initialization.create(Initialization.java:102)
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(Tomca
      tDeployment.java:367)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeploym
      ent.java:146)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2
      5)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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 $Proxy36.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLif
      ecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLif
      ecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallActi
      on(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessCon
      trollerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractContr
      ollerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCo
      ntext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerC
      ontext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:159
      8)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.j
      ava:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(
      AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDe
      ployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:1
      71)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:143
      9)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersI
      mpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersI
      mpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersI
      mpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098
      )
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCo
      ntext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:159
      8)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.j
      ava:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545
      )
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileS
      erviceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileService
      Bootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)

      Then you get the following exception for the first war, causing deployment to fail:

      15:16:26,981 ERROR [[/merlin/affiliate]] Exception sending context initialized event to listen
      er instance of class org.jboss.seam.servlet.SeamListener
      java.lang.NullPointerException
      at org.jboss.seam.init.Initialization.installComponents(Initialization.java:958)
      at org.jboss.seam.init.Initialization.init(Initialization.java:589)
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(Tomca
      tDeployment.java:367)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeploym
      ent.java:146)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2
      5)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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 $Proxy36.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLif
      ecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLif
      ecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallActi
      on(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessCon
      trollerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractContr
      ollerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCo
      ntext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerC
      ontext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:159
      8)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.j
      ava:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(
      AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDe
      ployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:1
      71)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:143
      9)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersI
      mpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersI
      mpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersI
      mpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098
      )
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCo
      ntext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:159
      8)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.j
      ava:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.
      java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545
      )
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileS
      erviceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileService
      Bootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)

      If you unzip the ear, then you still get the zipexceptions for each war in the ear, but the final exception does not happen and the deployment succeeds.

        Gliffy Diagrams

          Attachments

          1. realestate.ear
            1.96 MB
          2. realestate-src.zip
            59 kB
          3. server.log
            176 kB

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  amontague Adam Montague
                • Votes:
                  4 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: