Error migrating EJB2 app from 4.x to 6.x
asheffey Nov 23, 2011 2:16 PMI'm migrating an app which uses EJB2 session beans and MDBs from JBoss 4.x to 6.x. The session beans load fine, but the MDBs are throwing the following type of exception at deployment:
13:39:49,483 ERROR [AbstractKernelController] Error installing to Create: name=jboss.j2ee:jndiName=local/MyMDB@14856964,service=EJB state=Configured mode=Manual requiredState=Create: java.lang.UnsupportedOperationException: Message driven beans are not bound into remote jndi
at org.jboss.metadata.MessageDrivenMetaData.getJndiName(MessageDrivenMetaData.java:400) [:2.0.0-alpha-30]
at org.jboss.ejb.plugins.MetricsInterceptor.setContainer(MetricsInterceptor.java:96) [:6.1.0.Final]
at org.jboss.ejb.MessageDrivenContainer.createService(MessageDrivenContainer.java:241) [:6.1.0.Final]
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:323) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:299) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]
at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source) [:1.6.0_18]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_18]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_18]
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189) [:2.2.0.SP2]
at $Proxy41.create(Unknown Source) at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:54) [:2.2.0.SP2]
Is there something in the jboss.xml configuration which I need to change?