0 Replies Latest reply on Jun 19, 2008 2:07 AM by beyarecords

    Error deploying jboss-seam.jar:failed to initialize bean container

    beyarecords Novice

      Hi,


      Dev setup:


      Win XP SP1
      JDK1.6.0_06
      Jboss-Seam-2.0.3.CR1
      Jboss-5.0.0.CR1




      I created s simple helloworld project using 'seam setup', deployed it to Jboss and am receiving the following error, what is the issue here?:


      00:35:28,203 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader reposito
      ry config: seam.jboss.org:loader=helloworld for  vfsfile:/C:/Jboss/jboss-5.0.0.C
      R1/server/default/deploy/helloworld.ear/ use classloading metadata not loader re
      pository config
      00:35:34,625 INFO  [AspectDeployer] Deploying xml into org.jboss.aop.AspectManag
      er@101b085 for BaseClassLoader@178f2b{vfsfile:/C:/Jboss/jboss-5.0.0.CR1/server/d
      efault/deploy/ejb3-interceptors-aop.xml}
      00:36:27,421 INFO  [TransactionAttributeClassProcessor] org.jboss.metadata.ejb.s
      pec.ContainerTransactionMetaData@1f
      00:37:12,234 INFO  [JBossASKernel] Created KernelDeployment for: helloworld.jar
      00:37:12,250 INFO  [JBossASKernel] installing bean: persistence.units:ear=hellow
      orld.ear,unitName=helloworld
      00:37:12,250 INFO  [JBossASKernel]   with dependencies:
      00:37:12,250 INFO  [JBossASKernel]   and demands:
      00:37:12,250 INFO  [JBossASKernel]      jboss.jca:name=helloworldDatasource,serv
      ice=DataSourceBinding
      00:37:12,250 INFO  [JBossASKernel]   and supplies:
      00:37:12,250 INFO  [JBossASKernel]      persistence.units:unitName=helloworld
      00:37:12,250 INFO  [JBossASKernel] Added bean(persistence.units:ear=helloworld.e
      ar,unitName=helloworld) to KernelDeployment of: helloworld.jar
      00:37:12,500 INFO  [STDOUT] ======> Creating interceptor metadata bridge
      00:37:13,296 ERROR [AbstractKernelController] Error installing to Real: name=vfs
      file:/C:/Jboss/jboss-5.0.0.CR1/server/default/deploy/helloworld.ear/ state=PreRe
      al mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying jboss-seam.jar: fai
      led to initialize bean container
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:192)
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:95)
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internal
      Deploy(AbstractVFSRealDeployer.java:45)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
      AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
      Wrapper.java:174)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:970)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1023)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
      Impl.java:911)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:1392)
              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:784)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:912)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:834)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:672)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:455)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
      Impl.java:594)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
      rImpl.java:541)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr
      ofile(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:619)
      Caused by: java.lang.RuntimeException: failed to initialize bean container
              at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:225)
              at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:
      116)
              at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContain
      er.java:29)
              at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer
      .java:89)
              at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3Annota
      tionHandler.java:310)
              at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3Descri
      ptorHandler.java:488)
              at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHand
      ler.java:203)
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:645)
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:605)
              at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:587)
              at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:553)
              at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:465)
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:178)
              ... 22 more
      Caused by: java.lang.RuntimeException: Unable to locate the transaction manager
              at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocat
      or.java:105)
              at org.jboss.aspects.tx.TxPropagationInterceptor.<init>(TxPropagationInt
      erceptor.java:48)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at java.lang.Class.newInstance0(Class.java:355)
              at java.lang.Class.newInstance(Class.java:308)
              at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFa
      ctory.java:146)
              at org.jboss.aop.AspectManager.createPerVmAspect(AspectManager.java:1912
      )
              at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1889)
              at org.jboss.aop.Domain.getPerVMAspect(Domain.java:784)
              at org.jboss.aop.Domain.getPerVMAspect(Domain.java:784)
              at org.jboss.aop.Domain.getPerVMAspect(Domain.java:769)
              at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedIntercepto
      rFactory.java:69)
              at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:944)
              at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.createInte
      rceptorChain(ManagedObjectAdvisor.java:136)
              at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1380)
              at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:153)
              at org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInf
      o.java:144)
              at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:9
      3)
              at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1065)
              at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:688)
              at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:
      601)
              at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:304)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:274)
              at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.initialize
      (ManagedObjectAdvisor.java:169)
              at org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor.initialize(ExtendedMa
      nagedObjectAdvisor.java:70)
              at org.jboss.ejb3.interceptors.container.AbstractContainer.initializeAdv
      isor(AbstractContainer.java:162)
              at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:201)
              at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:221)
              ... 34 more



      Many thanks in advance.


      Andrew