0 Replies Latest reply on May 19, 2008 4:59 PM by jfrankman

    MDB Problem with Updgrade to Seam 2

    jfrankman Novice

      We have written and application in Seam 1.2 and deployed on JBoss 4.0.5. I am now in the process of upgrading it to seam 2 and deploying it on Jboss 4.2.2. I have followed the migration instructions found with the Seam download but still have a problem.


      All of my MDBs failed to deploy. I was declaring my MDBs using annotations as follows:


      @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
      
                @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/IDFBBatchReportQueue") })
      
      @TransactionTimeout(1800)
      
      @Name("IDFBBatchReportMessageHandler")
      
      public class BatchReportRequestHandler implements MessageListener
      
      {



      When I deploy the app I get the following:


      08:12:03,033 WARN  [ServiceController] Problem starting service jboss.j2ee:ear=nexus-poc-2.ear,jar=nexus-poc-2.jar,name=NexusToIRReportDocumentMessageHandler,service=EJB3
      
      javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered.
      
           at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
      
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
      
           at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
      
           at org.jboss.ejb3.jms.DestinationManagerJMSDestinationFactory.createDestination(DestinationManagerJMSDestinationFactory.java:75)
      
           at org.jboss.ejb3.mdb.MessagingContainer.createTemporaryDestination(MessagingContainer.java:573)
      
           at org.jboss.ejb3.mdb.MessagingContainer.createDestination(MessagingContainer.java:512)
      
           at org.jboss.ejb3.mdb.MessagingContainer.innerCreateQueue(MessagingContainer.java:438)
      
           at org.jboss.ejb3.mdb.MessagingContainer.jmsCreate(MessagingContainer.java:400)
      
           at org.jboss.ejb3.mdb.MessagingContainer.innerStart(MessagingContainer.java:166)
      
           at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:152)
      
           at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
      
           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:585)
      
           at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
      
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      
           at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
           at java.lang.reflect.Method.invoke(Method.java:585)
      
           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:585)
      
           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 $Proxy112.start(Unknown Source)
      
           at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
      
           at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
      
           at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
      
           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.GeneratedMethodAccessor3.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
           at java.lang.reflect.Method.invoke(Method.java:585)
      
           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:585)
      
           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 $Proxy33.start(Unknown Source)
      
           at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
      
           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:585)
      
           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.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      
           at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
      
           at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      
           at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      
           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 $Proxy34.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.GeneratedMethodAccessor24.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
           at java.lang.reflect.Method.invoke(Method.java:585)
      
           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 $Proxy9.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.startService(AbstractDeploymentScanner.java:336)
      
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      
           at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
           at java.lang.reflect.Method.invoke(Method.java:585)
      
           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:585)
      
           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 $Proxy4.start(Unknown Source)
      
           at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      
           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:585)
      
           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 $Proxy5.deploy(Unknown Source)
      
           at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      
           at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      
           at org.jboss.Main.boot(Main.java:200)
      
           at org.jboss.Main$1.run(Main.java:508)
      
           at java.lang.Thread.run(Thread.java:595)
      
      



      Is there something new about SEAM 2 or JBoss 4.2.2 that handles MDB differently?