7 Replies Latest reply on Aug 12, 2011 6:55 AM by Stefan Maier

    Errors deploying "seam-booking" example

    jsoye Newbie

      Hi all,
      I've decided to take the big plunge and move from Seam 2.2 to Seam 3. Unfortunately I'm having problems with my very first hurdle, i.e, getting seam-booking to run. I have JBoss AS 6.0.0 (Final), Maven 3.0.3 and JBoss Seam 3.0.0 (Final). I also have Glassfish 3.1, as I haven't quite decided which AS I'm going to use.


      When I first ran the command


      D:\seam-3.0.0.Final\examples\seam-booking\mvn package



      it moaned about a missing POM file. This doesn't exist in my


      D:\seam-3.0.0.Final\examples



      directory, so I downloaded the example from here.
      This did have the POM present and builds fine producing seam-booking.war in the target
      directory. But deploying it, in either



      • JBoss 6 - (using mvn package jboss:hard-deploy)

      • Glassfish 3.1 - (using asadmin deploy target/seam-booking.war)



      gives problems. I've listed both the GF and JBoss errors below. Has anyone got this example working in either of the Application Servers? If so, would you know what I might be doing wrong?


      Many thanks, John.


      ----------------Glassfish error------------------------
      [#|2011-05-25T14:19:38.921+0100|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=49;_ThreadName=Thread-1;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
      java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318 Cannot resolve an ambiguous dependency between [Custom Bean with bean class class org.jboss.seam.servlet.logging.TypedMessageBundleAndLoggerProducers and qualifiers [@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()], Custom Bean with bean class class org.jboss.seam.solder.logging.TypedMessageLoggerProducer and qualifiers [@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]]
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:130)
           at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
           at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
           at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
           at java.lang.Thread.run(Thread.java:662)
      |#]
      
      [#|2011-05-25T14:19:39.031+0100|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=49;_ThreadName=Thread-1;|Exception while loading the app|#]
      
      [#|2011-05-25T14:19:42.781+0100|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=49;_ThreadName=Thread-1;|Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318 Cannot resolve an ambiguous dependency between [Custom Bean with bean class class org.jboss.seam.servlet.logging.TypedMessageBundleAndLoggerProducers and qualifiers [@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()], Custom Bean with bean class class org.jboss.seam.solder.logging.TypedMessageLoggerProducer and qualifiers [@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]]|#]
      



      ------------------JBoss Error---------------------------
      2011-05-25 14:58:55,062 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (Thread-2) Error installing to Start: name=vfs:///D:/jboss-6.0.0.Final/server/default/deploy/seam-booking.war_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.WeldException: by java.lang.ClassFormatError: Illegal class name "org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$D:$jboss-6$0$0$Final$server$default$deploy$seam-booking$war"-ManagedBean-org$jboss$seam$security$management$action$RoleAction[@javax$enterprise$context$ConversationScoped()@javax$inject$Named(value=)]{org$jboss$seam$security$management$action$RoleAction$conversation[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$identitySession[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$deleteRoleType[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()](java$lang$String)$org$jboss$seam$security$management$action$RoleAction$save[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()]()$}_$$_WeldSubclass" in class file org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$D:$jboss-6$0$0$Fin
           at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:285) [:6.0.0.Final]
           at org.jboss.weld.bean.AbstractClassBean.createEnhancedSubclass(AbstractClassBean.java:673) [:6.0.0.Final]
           at org.jboss.weld.bean.AbstractClassBean.initEnhancedSubclass(AbstractClassBean.java:659) [:6.0.0.Final]
           at org.jboss.weld.bean.AbstractClassBean.initializeAfterBeanDiscovery(AbstractClassBean.java:354) [:6.0.0.Final]
           at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:420) [:6.0.0.Final]
           at org.jboss.weld.bootstrap.BeanDeployment.doAfterBeanDiscovery(BeanDeployment.java:230) [:6.0.0.Final]
           at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:219) [:6.0.0.Final]
           at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:368) [:6.0.0.Final]
           at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:92) [:6.0.0.Final]
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_25]
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_25]
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_25]
           at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_25]
           at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
           at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
           at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
           at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
           at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
           at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
           at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
           at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
      
           .....
           .....
           
        Deployment "<UNKNOWN jboss.j2ee:jar=seam-booking.war,name=HotelSearch,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss-injector:bean=HotelSearch,topLevelUnit=seam-booking.war,unit=seam-booking.war' **, ** UNRESOLVED Demands 'jboss-injector:bean=HotelSearch,interceptor=org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor,topLevelUnit=seam-booking.war,unit=seam-booking.war' **, ** UNRESOLVED Demands 'jboss-injector:bean=HotelSearch,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor,topLevelUnit=seam-booking.war,unit=seam-booking.war' **
        Deployment "<UNKNOWN jboss-injector:topLevelUnit=seam-booking.war,unit=seam-booking.war,bean=PasswordManager,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss-switchboard:appName=seam-booking,module=seam-booking' **
      
           at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
           at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
           at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
           at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
           at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
           at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
           at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
           at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      
      
      

        • 1. Re: Errors deploying "seam-booking" example
          Jason Porter Master

          Glassfish: Which version of Glassfish and which version of Weld are you using?


          JBoss: Looks like you're using JDK 1.6.0_25 correct? Seen lots of people complaining about it, seems like a bug in the JDK, revert to 24.

          • 2. Re: Errors deploying "seam-booking" example
            jsoye Newbie

            Fantastic stuff Jason. You were spot on. Thanks for that.


            I was using JDK 1.6.0_25. Reverting back to a previous version solved the problem and seam-booking now works a treat in JBoss. Looks great I have to say.


            The same can't be said for Glassfish however. I still get that error. I'm using Glassfish 3.1 (Final version).


            INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1 (build 43)
            



            I'm not sure how to find out the Weld version. In the logs, it only says:


            [#|2011-05-26T14:49:29.312+0100|INFO|glassfish3.1|org.jboss.weld.Version|_ThreadID=20;_ThreadName=Thread-1;|WELD-000900 ${parsedVersion (osgiVersion})|#]
            



            I was expecting to see something like Weld 1.1.
            I guess there's a bug in there somewhere.


            Apart from fixing my bug Jason, you've helped me choose the Application Server. JBoss it is. Thanks again!




            • 3. Re: Errors deploying "seam-booking" example
              Stefan Maier Newbie

              Hello,


              I've got a similar issue with the booking example. I use JDK 6 Update 22 but I have also tried it with JDK 6 Update 26 and JDK 7 but with no success. JBOSS Version is 6.0.0 Final. I can build the project but I get the following deployment error:







              00:51:01,443 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=vfs:///home/anubis/Software/jboss-6.0.0.Final/server/default/deploy/seam-booking.war_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.WeldException: by java.lang.ClassFormatError: Illegal class name "org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$anubis$Software$jboss-6$0$0$Final$server$default$deploy$seam-booking$war"-ManagedBean-org$jboss$seam$security$management$action$RoleAction[@javax$enterprise$context$ConversationScoped()@javax$inject$Named(value=)]{org$jboss$seam$security$management$action$RoleAction$conversation[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$identitySession[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$deleteRoleType[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()](java$lang$String)$org$jboss$seam$security$management$action$RoleAction$save[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()]()$}_$$_WeldSubclass" in class file org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$
                   at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:285) [:6.0.0.Final]
                   at org.jboss.weld.bean.AbstractClassBean.createEnhancedSubclass(AbstractClassBean.java:673) [:6.0.0.Final]
                   at org.jboss.weld.bean.AbstractClassBean.initEnhancedSubclass(AbstractClassBean.java:659) [:6.0.0.Final]
                   at org.jboss.weld.bean.AbstractClassBean.initializeAfterBeanDiscovery(AbstractClassBean.java:354) [:6.0.0.Final]
                   at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:420) [:6.0.0.Final]
                   at org.jboss.weld.bootstrap.BeanDeployment.doAfterBeanDiscovery(BeanDeployment.java:230) [:6.0.0.Final]
                   at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:219) [:6.0.0.Final]
                   at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:368) [:6.0.0.Final]
                   at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:92) [:6.0.0.Final]
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
                   at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
                   at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
                   at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
                   at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                   at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                   at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                   at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                   at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                   at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                   at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [:1.6.0_22]
                   at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [:1.6.0_22]
                   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [:1.6.0_22]
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) [:1.6.0_22]
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) [:1.6.0_22]
                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
                   at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
              Caused by: javassist.CannotCompileException: by java.lang.ClassFormatError: Illegal class name "org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$anubis$Software$jboss-6$0$0$Final$server$default$deploy$seam-booking$war"-ManagedBean-org$jboss$seam$security$management$action$RoleAction[@javax$enterprise$context$ConversationScoped()@javax$inject$Named(value=)]{org$jboss$seam$security$management$action$RoleAction$conversation[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$identitySession[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$deleteRoleType[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()](java$lang$String)$org$jboss$seam$security$management$action$RoleAction$save[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()]()$}_$$_WeldSubclass" in class file org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$
                   at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:117) [:6.0.0.Final]
                   at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:392) [:6.0.0.Final]
                   at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:281) [:6.0.0.Final]
                   ... 58 more
              Caused by: java.lang.ClassFormatError: Illegal class name "org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$anubis$Software$jboss-6$0$0$Final$server$default$deploy$seam-booking$war"-ManagedBean-org$jboss$seam$security$management$action$RoleAction[@javax$enterprise$context$ConversationScoped()@javax$inject$Named(value=)]{org$jboss$seam$security$management$action$RoleAction$conversation[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$identitySession[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$deleteRoleType[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()](java$lang$String)$org$jboss$seam$security$management$action$RoleAction$save[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()]()$}_$$_WeldSubclass" in class file org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$
                   at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_22]
                   at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [:1.6.0_22]
                   at java.lang.ClassLoader.defineClass(ClassLoader.java:480) [:1.6.0_22]
                   at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source) [:1.6.0_22]
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
                   at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
                   at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:143) [:6.0.0.Final]
                   at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:109) [:6.0.0.Final]
                   ... 60 more
              
              00:51:01,631 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
              
              DEPLOYMENTS MISSING DEPENDENCIES:
              


              and




              (s): ** UNRESOLVED Demands 'jboss-switchboard:appName=seam-booking,module=seam-booking' **
                Deployment "<UNKNOWN jboss.j2ee:jar=seam-booking.war,name=HotelSearch,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss-injector:bean=HotelSearch,topLevelUnit=seam-booking.war,unit=seam-booking.war' **, ** UNRESOLVED Demands 'jboss-injector:bean=HotelSearch,interceptor=org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor,topLevelUnit=seam-booking.war,unit=seam-booking.war' **, ** UNRESOLVED Demands 'jboss-injector:bean=HotelSearch,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor,topLevelUnit=seam-booking.war,unit=seam-booking.war' **, ** UNRESOLVED Demands 'persistence.unit:unitName=seam-booking.war#booking' **
                Deployment "<UNKNOWN jboss-injector:topLevelUnit=seam-booking.war,unit=seam-booking.war,bean=PasswordManager,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss-switchboard:appName=seam-booking,module=seam-booking' **
              
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]
                   at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]
                   at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                   at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                   at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                   at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                   at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                   at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                   at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [:1.6.0_22]
                   at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [:1.6.0_22]
                   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [:1.6.0_22]
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) [:1.6.0_22]
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) [:1.6.0_22]
                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
                   at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
              






              • 4. Re: Errors deploying "seam-booking" example
                jsoye Newbie

                Hi Stefan,
                I'm not sure, but I'd look at the JDK or Weld Version being used. Have a look at this post. I think he had the exact same problem as us (his error message looks very like yours).


                He used JDK 1.6.0 u26 with Jboss 6.0 and Jboss 7.0, on Windows 7 and unbuntu which all failed.


                The advice was:


                https://issues.jboss.org/browse/WELD-897
                Either upgrade your application server to Weld 1.1.2 or use JDK 1.6u24
                



                When he downgraded to JDK 1.6.0.24, (like I did, I'm also on that version) it worked.


                • 5. Re: Errors deploying "seam-booking" example
                  Stefan Maier Newbie

                  Hello John,


                  thank you for your answer. I have also checked with JDK 6 Update 6 and JBoss 7, since it is already based on Weld 1.1.2, but got an error again. Looks like reverting back to JDK 6 Update 24 is the only way. Unfortunately, it seems that Update 24 is not downloadable from Oracle anymore, so I have to get it from somewhere else.


                  This is the error I get when I deploy on JBoss 7:


                  18:45:11,515 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "seam-booking.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"seam-booking.war\".component.PasswordManager.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.PasswordManager/em\" ]","jboss.deployment.unit.\"seam-booking.war\".jndiDependencyService missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.security.BookingAuthenticator/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.PasswordManager/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingAgent/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingHistory/entityManager\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.inventory.HotelSearch/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.Registrar/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.BookingHistory.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingHistory/entityManager\" ]","jboss.persistenceunit.\"seam-booking.war#booking\" missing [ jboss.naming.context.java.jdbc/__default ]","jboss.deployment.unit.\"seam-booking.war\".component.Registrar.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.Registrar/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.BookingAgent.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingAgent/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.HotelSearch.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.inventory.HotelSearch/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.BookingAuthenticator.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.security.BookingAuthenticator/em\" ]"]}
                  18:45:11,630 INFO  [org.jboss.weld] (MSC service thread 1-2) Stopping weld service
                  18:45:11,958 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment seam-booking.war in 441ms
                  18:45:11,970 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"seam-booking.war\".component.PasswordManager.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.PasswordManager/em\" ]","jboss.deployment.unit.\"seam-booking.war\".jndiDependencyService missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.security.BookingAuthenticator/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.PasswordManager/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingAgent/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingHistory/entityManager\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.inventory.HotelSearch/em\", jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.Registrar/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.BookingHistory.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingHistory/entityManager\" ]","jboss.persistenceunit.\"seam-booking.war#booking\" missing [ jboss.naming.context.java.jdbc/__default ]","jboss.deployment.unit.\"seam-booking.war\".component.Registrar.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.account.Registrar/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.BookingAgent.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.booking.BookingAgent/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.HotelSearch.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.inventory.HotelSearch/em\" ]","jboss.deployment.unit.\"seam-booking.war\".component.BookingAuthenticator.START missing [ jboss.naming.context.java.module.seam-booking.seam-booking.\"env/org.jboss.seam.examples.booking.security.BookingAuthenticator/em\" ]"]}}}
                  



                  • 6. Re: Errors deploying "seam-booking" example
                    jsoye Newbie

                    I had problems finding it too. I found that is was best to search for


                    jdk-6u24-windows-i586.exe (can be downloaded from here )
                    or
                    jdk-6u24-windows-x64.exe (from here )


                    depending on your OS. I know downgrading the JDK isn't great, but at least you'll be up and started. Someone might post a better solution later.


                    I'd be interested to know if this works for you...


                    • 7. Re: Errors deploying "seam-booking" example
                      Stefan Maier Newbie

                      Hello John,


                      thank you for the links. I've got it working now with JDK 6 Update 24 and JBoss 6. Still no luck with JBoss 7. Hope this gets fixed soon! But at least I can play around with the booking example now. Thank's again for your help!