Maybe it's because in web.xml you use ejb-local-ref and in jboss-web.xml ejb-ref (not ejb-local-ref)?

Pedro Salazar wrote:

Greetings,

I deployed my EJB the name "ServiceInfo" and the JNDI names
ejb/ServiceInfo and ejb/ServiceInfoLocal, for the remote and local
interfaces respectively.

In my servlet application's web.xml I have the following lines:

"
<ejb-local-ref>
<ejb-ref-name>ServiceInfo</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type> <local-home>pt.ptinovacao.nginpro.uif.service.ejb.interfaces.ServiceInfoLocalHome</local-home> <local>pt.ptinovacao.nginpro.uif.service.ejb.interfaces.ServiceInfoLocal</local>
<ejb-link>ejb/ServiceInfoLocal</ejb-link>
</ejb-local-ref>
"


In my servlet application's jboss-web.xml I have the following lines:

"
   <ejb-ref>
      <ejb-ref-name>ServiceInfo</ejb-ref-name>
      <jndi-name>ejb/ServiceInfoLocal</jndi-name>
   </ejb-ref>
"

When I deploy my EAR (with my ejb and WAR) I got this error:

"
org.jboss.deployment.DeploymentException: Failed to parse
WEB-INF/jboss-web.xml; - nested throwable:
(org.jboss.deployment.DeploymentException: ejb-ref ServiceInfo found in
jboss-web.xml but not in web.xml)
"

I put below my xdoclet of my servlet (if help):

@web.ejb-local-ref
* name="ServiceInfo"
* type="Session"
* link="ejb/ServiceInfoLocal"
* home="pt.ptinovacao.nginpro.uif.service.ejb.interfaces.ServiceInfoLocalHome"
* local="pt.ptinovacao.nginpro.uif.service.ejb.interfaces.ServiceInfoLocal"
*
* @ejb.ejb-ref * ejb-name="ServiceInfo"
* view-type="local"
* ref-name="ejb/ServiceInfoLocal"
* * @jboss.ejb-ref-jndi * ref-name="ServiceInfo"
* jndi-name="ejb/ServiceInfoLocal"



What am I doing wrong?


thanks.

regards,
Pedro Salazar



------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to