Jboss 7 migration issues related with EJB2
chandrup Dec 28, 2012 7:52 AMHi All,
I am having a similar issue as discussed in the post https://community.jboss.org/thread/176818. I am migrating an application which runs on JBoss 3.2 which uses EJB2 to JBoss As 7.1 and I wanted to retain with EJB2 in the JBoss As 7.1 also.
As I visited the link https://issues.jboss.org/browse/AS7-3015
it has been mentioned as per Jaikiran's comments as below:
Okay,I looked at the descriptor in more detail now. In AS7 we no longer support binding to custom JNDI names for EJBs. So the beans are always bound to the spec mandated java:global, java:app and java:module namespaces. The <jndi-name> for the session bean element is no longer supported.
Could you please let me know where to place the mandated namespaces, is it in standalone.xml? or in jboss-ejb3.xml. And Do I need to change something on the code also?
My Error trace is as follows:
03:39:16,194 ERROR [org.jboss.msc.service.fail94] MSC00001: Failed to start service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."spinnaker_im.ear"."tunnel-web.war".INSTALL: Failed to process phase INSTALL of subdeployment "tunnel-web.war" of deployment "spinnaker_im.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014543: No EJB found with interface of type 'com.liferay.portal.ejb.RoleLocalManagerHome' and name 'com_liferay_portal_ejb_RoleLocalManager' for binding java:module/env/ejb/liferay/RoleLocalManagerHome
at org.jboss.as.ejb3.deployment.processors.EjbInjectionSource.getResourceValue(EjbInjectionSource.java:88)
at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:227)
at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 5 more
Thanks,
Chandru