M-Leander Reimer
2002-06-24 07:47:02 UTC
Hi there,
I compiled the sample and everything runs fine. When I deploy the EAR
unter JBoss 3.0.0, I get something this:
org.jboss.deployment.DeploymentException: Error during deploy; - nested
throwable: (javax.naming.NamingException: ejb-local-ref: ejb/Flight,
target not found, add valid ejb-link)
So I look into the generated web.xml and I find:
<ejb-local-ref>
<ejb-ref-name>ejb/Person</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>airline.ejb.interfaces.PersonLocalHome</local-home>
<local>airline.ejb.interfaces.PersonLocal</local>
</ejb-local-ref>
I guess this is necessary to use the local interfaces of the EJBs from
other beans (an servlets) in the webapp.
1. What would the correct value of the optional <ejb-link> attribute be,
so it would work?
2. Why are there more than one <ejb-local-ref> declarations per bean (up
to 5 times in case of the person bean) in the web.xml? Is this required?
3. Can I modify the behaviour of Middlegen or XDoclet somehow, so a
correct deployment descriptor is generated?
Thanks for the help guys!
CU
Leander
I compiled the sample and everything runs fine. When I deploy the EAR
unter JBoss 3.0.0, I get something this:
org.jboss.deployment.DeploymentException: Error during deploy; - nested
throwable: (javax.naming.NamingException: ejb-local-ref: ejb/Flight,
target not found, add valid ejb-link)
So I look into the generated web.xml and I find:
<ejb-local-ref>
<ejb-ref-name>ejb/Person</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>airline.ejb.interfaces.PersonLocalHome</local-home>
<local>airline.ejb.interfaces.PersonLocal</local>
</ejb-local-ref>
I guess this is necessary to use the local interfaces of the EJBs from
other beans (an servlets) in the webapp.
1. What would the correct value of the optional <ejb-link> attribute be,
so it would work?
2. Why are there more than one <ejb-local-ref> declarations per bean (up
to 5 times in case of the person bean) in the web.xml? Is this required?
3. Can I modify the behaviour of Middlegen or XDoclet somehow, so a
correct deployment descriptor is generated?
Thanks for the help guys!
CU
Leander