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

Spring example unable to deploy to JBoss AS 6

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.1.CR1
    • Fix Version/s: 2.2.1.CR3
    • Component/s: Examples
    • Labels:
      None
    • Environment:

      java version "1.6.0_14"
      JBoss AS 6 M2

    • Affects:
      Release Notes

      Description

      09:34:04,127 ERROR [org.apache.catalina.core.StandardContext] Context [/jboss-seam-spring] startup failed due to previous errors: java.lang.IllegalArgumentException: Container org.jboss.web.tomcat.service.TomcatInjectionContainer@65bf7793 failed to resolve persistence unit null
      at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135)
      at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)
      at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:574)
      at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:315)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:116)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
      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.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:271)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy41.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)
      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:378)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
      at org.jboss.system.ServiceController.start(ServiceController.java:443)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1660)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'null' in AbstractVFSDeploymentContext@505141554

      {vfszip:/home/jharting/jboss/jboss-6.0.0.20100216-M2/server/default/deploy/jboss-seam-spring.war/}

      at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107)
      at org.jboss.web.tomcat.service.TomcatInjectionContainer.resolvePersistenceUnitSupplier(TomcatInjectionContainer.java:709)
      at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130)
      ... 68 more

      09:34:04,130 ERROR [org.apache.catalina.core.StandardContext] Context [/jboss-seam-spring] startup failed due to previous errors
      09:34:04,148 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/jboss-seam-spring state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: URL file:/home/jharting/jboss/jboss-6.0.0.20100216-M2/server/default/tmp/3j001-t1wz87-g6afy1gf-1-g6afzqz4-9u/jboss-seam-spring.war/ deployment failed
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:337)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:116)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
      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.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:271)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy41.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)
      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:378)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
      at org.jboss.system.ServiceController.start(ServiceController.java:443)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1660)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      09:34:04,180 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfszip:/home/jharting/jboss/jboss-6.0.0.20100216-M2/server/default/deploy/jboss-seam-spring.war/ state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: URL file:/home/jharting/jboss/jboss-6.0.0.20100216-M2/server/default/tmp/3j001-t1wz87-g6afy1gf-1-g6afzqz4-9u/jboss-seam-spring.war/ deployment failed
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:337)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:462)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:116)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
      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.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:271)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy41.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)
      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:378)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
      at org.jboss.system.ServiceController.start(ServiceController.java:443)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1660)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                jharting Jozef Hartinger
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: