[jboss-user] [EJB 3.0] - NamingException: failed to resolve to an ejb with a LocalHom
pKraemer
do-not-reply at jboss.com
Mon Feb 5 11:06:18 EST 2007
Hi,
I am realy new to EJB and JBoss. So I followed the tipps for installing JBoss with EJB.
Because I am using EJB with JSF I searched for a Tutorial including both and tried it out.
I use: JBoss 4.04
On deploying the Project, I got the following Exception:
------------------------------------------------------------------------------
anonymous wrote :
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo at 5764ecbb { url=file:/C:/Programme/jboss-4.0.
| 4.GA/server/default/deploy/SrDemo_EAR.ear }
| deployer: org.jboss.deployment.EARDeployer at bf053f
| status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
| vax.naming.NamingException: ejb-local-ref: 'ejb/ServiceRequestFacade', with web.
| xml ejb-link: 'ServiceRequestFacade' failed to resolve to an ejb with a LocalHom
| e)
| state: FAILED
| watch: file:/C:/Programme/jboss-4.0.4.GA/server/default/deploy/SrDemo_EAR.ear
| altDD: null
| lastDeployed: 1170689839192
| lastModified: 1170689838892
| mbeans:
| persistence.units:ear=SrDemo_EAR.ear,jar=ejb.jar,unitName=Model state: Faile
| d
| jboss.j2ee:ear=SrDemo_EAR.ear,jar=ejb.jar,name=ServiceRequestFacade,service=
| EJB3 state: Registered
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.web.deployment:war=web.war,id=1401278963
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
| d throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/ServiceRequestFa
| cade', with web.xml ejb-link: 'ServiceRequestFacade' failed to resolve to an ejb
| with a LocalHome)
|
| ObjectName: persistence.units:ear=SrDemo_EAR.ear,jar=ejb.jar,unitName=Model
| State: FAILED
| Reason: java.lang.RuntimeException: You have not defined a jta-data-source for
| a JTA enabled persistence context named: Model
| Depends On Me:
| jboss.j2ee:ear=SrDemo_EAR.ear,jar=ejb.jar,name=ServiceRequestFacade,service=
| EJB3
|
| ObjectName: jboss.j2ee:ear=SrDemo_EAR.ear,jar=ejb.jar,name=ServiceRequestFacade,
| service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:ear=SrDemo_EAR.ear,jar=ejb.jar,unitName=Model
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: persistence.units:ear=SrDemo_EAR.ear,jar=ejb.jar,unitName=Model
| State: FAILED
| Reason: java.lang.RuntimeException: You have not defined a jta-data-source for
| a JTA enabled persistence context named: Model
| Depends On Me:
| jboss.j2ee:ear=SrDemo_EAR.ear,jar=ejb.jar,name=ServiceRequestFacade,service=
| EJB3
|
| ObjectName: jboss.web.deployment:war=web.war,id=1401278963
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
| d throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/ServiceRequestFa
| cade', with web.xml ejb-link: 'ServiceRequestFacade' failed to resolve to an ejb
| with a LocalHome)
|
|
--------------------------------------------------------------------------------------
Perhabs I have structured the Project wrong way or any thing else:
Structure:
SRDemo.ear
+--ejb.jar
+-org.srdemo.business[Containing the Statless Session Bean/Interface]
+-org.srdemo.persistence [Entity Beans]
+--web.war
+--applicatin
+--WEB-INF
+--web.xml
+--jboss-web.xml
In the web.xml I defined:
| <ejb-local-ref>
| <ejb-ref-name>ejb/ServiceRequestFacade</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.srdemo.business.ServiceRequestFacadeLocal</local-home>
| <local>org.srdemo.business.ServiceRequestFacadeLocal</local>
| <ejb-link>ServiceRequestFacade</ejb-link>
| </ejb-local-ref>
|
I am not sure what I can do...
Thanks for help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011416#4011416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011416
More information about the jboss-user
mailing list