3 Replies Latest reply on Feb 19, 2007 8:40 AM by Henning Eiben

    Deploying TrailBlazer

    Henning Eiben Newbie

      Hi,

      I'm fairly new to Java & EJB ... so I download the TrailBlazer example and wanted to deploy that to my local App-Server (Windows XP Pro, JDK 1.6, JBoss 4.0.5 with jboss-EJB-3.0_RC9_Patch_1).

      So I copied the EJB3Trail.ear to my deploy-directory ... but I get a couple of errors; e.g.

      12:28:10,060 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=ApptransCalculator,service=EJB3
       State: FAILED
       Reason: java.lang.NullPointerException
       I Depend On:
       persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail
      


      (this is just one out of an bunch of other errors).

      And this is just the point ... I wanted to create a stateful session bean for my own app as well, and I encounter the same problem: the stateful bean can not be deployed, it's complaining about the persistent-unit. If I switch to a stateless session bean everything is working just fine ...

      ... any hint's on what's going wrong?

        • 1. Re: Deploying TrailBlazer
          jaikiran pai Master

          Can you post the entire exception stacktrace that you see above this error message?

          • 2. Re: Deploying TrailBlazer
            Henning Eiben Newbie

             

            "jaikiran" wrote:
            Can you post the entire exception stacktrace that you see above this error message?


            well, the log just sarting up the trailblazer app is about 1.3 mb ... :) so i took my little app, and deployed that instead :)

            heres the output from the server-log:

            2007-02-15 16:59:37,456 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: business.dispatcher.ItemDispatcherBean ejbName: ItemDispatcherBean
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@1f51d36
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Started jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemDispatcherBean,service=EJB3
            2007-02-15 16:59:37,466 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemDispatcherBean,service=EJB3 dependent components: []
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb3.Ejb3Deployment] Bound ejb3 container jboss.j2ee:service=EJB3,ear=javastore.ear,jar=javastore.jar,name=ItemDispatcherBean
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
            2007-02-15 16:59:37,466 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3 with dependencies:
            2007-02-15 16:59:37,466 INFO [org.jboss.ejb3.JmxKernelAbstraction] persistence.units:ear=javastore.ear,jar=javastore.jar,unitName=business
            2007-02-15 16:59:37,466 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            2007-02-15 16:59:37,466 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: [persistence.units:ear=javastore.ear,jar=javastore.jar,unitName=business]
            2007-02-15 16:59:37,466 DEBUG [org.jboss.system.ServiceController] recording that jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3 depends on persistence.units:ear=javastore.ear,jar=javastore.jar,unitName=business
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Creating jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Created jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            2007-02-15 16:59:37,466 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3 dependents are: []
            2007-02-15 16:59:37,466 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            2007-02-15 16:59:37,466 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            2007-02-15 16:59:37,466 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@5e88f7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1542c06{ url=null ,addedOrder=0}
            2007-02-15 16:59:37,476 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@5e88f7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1166179{ url=null ,addedOrder=0}
            2007-02-15 16:59:37,476 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@5e88f7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@595bcd{ url=null ,addedOrder=0}
            2007-02-15 16:59:37,476 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@5e88f7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@99f610{ url=null ,addedOrder=0}
            2007-02-15 16:59:37,476 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@5e88f7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1e9b48b{ url=null ,addedOrder=0}
            2007-02-15 16:59:37,476 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@5e88f7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@91a0c3{ url=null ,addedOrder=0}
            2007-02-15 16:59:37,476 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            java.lang.NullPointerException
             at $Proxy104.retainIfException(Unknown Source)
             at org.jboss.ejb3.stateful.StatefulRemoveFactory.createPerJoinpoint(StatefulRemoveFactory.java:56)
             at org.jboss.aop.advice.AspectFactoryDelegator.createPerJoinpoint(AspectFactoryDelegator.java:119)
             at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:113)
             at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:612)
             at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:882)
             at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:644)
             at org.jboss.aop.ClassContainer.createInterceptorChains(ClassContainer.java:246)
             at org.jboss.aop.ClassContainer.rebuildInterceptors(ClassContainer.java:113)
             at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:56)
             at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:453)
             at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:121)
             at org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:91)
             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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy181.start(Unknown Source)
             at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
             at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:281)
             at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:328)
             at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy29.start(Unknown Source)
             at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
             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:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy30.start(Unknown Source)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             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:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy8.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
            2007-02-15 16:59:37,476 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:ear=javastore.ear,jar=javastore.jar,name=ItemQueryDisptacherBean,service=EJB3
            java.lang.NullPointerException
             at $Proxy104.retainIfException(Unknown Source)
             at org.jboss.ejb3.stateful.StatefulRemoveFactory.createPerJoinpoint(StatefulRemoveFactory.java:56)
             at org.jboss.aop.advice.AspectFactoryDelegator.createPerJoinpoint(AspectFactoryDelegator.java:119)
             at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:113)
             at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:612)
             at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:882)
             at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:644)
             at org.jboss.aop.ClassContainer.createInterceptorChains(ClassContainer.java:246)
             at org.jboss.aop.ClassContainer.rebuildInterceptors(ClassContainer.java:113)
             at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:56)
             at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:453)
             at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:121)
             at org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:91)
             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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy181.start(Unknown Source)
             at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
             at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:281)
             at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:328)
             at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy29.start(Unknown Source)
             at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
             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:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy30.start(Unknown Source)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
             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:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             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:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy8.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
            


            and this is the bean in question:

            package business.dispatcher;
            
            import java.io.Serializable;
            import java.util.Collection;
            
            import javax.ejb.Init;
            import javax.ejb.Remove;
            import javax.ejb.Stateful;
            import javax.ejb.TransactionAttribute;
            import javax.ejb.TransactionAttributeType;
            import javax.persistence.EntityManager;
            import javax.persistence.PersistenceContext;
            import javax.persistence.PersistenceContextType;
            import javax.persistence.Query;
            
            import business.entities.Itemgroup;
            import business.interfaces.IItemQueryDispatcher;
            
            @Stateful
            //@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
            public class ItemQueryDisptacherBean implements IItemQueryDispatcher, Serializable
            {
             /**
             *
             */
             private static final long serialVersionUID = -8565699133627789588L;
            
             @PersistenceContext(type = PersistenceContextType.EXTENDED) //, unitName = "business")
             protected EntityManager em;
            
             @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
             public Collection<Itemgroup> getRootItemgroups()
             {
             Query query = em.createQuery("from Itemgroup i where i.itemgroup = 0");
             return (Collection<Itemgroup>) query.getResultList();
             }
            
             // @Init
             // public void init()
             // {}
            
             @Remove
             public void finished()
             {}
            
            }
            


            • 3. Re: Deploying TrailBlazer
              Henning Eiben Newbie

              OK, I figured something ... if I change the annotation of the @Remove to @Remove(retainIfException=false) at least my solution can be deployed ... but why do I have to add this attribute?