[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with EAR deployment in JBoss 5.1.0CR1

jaikiran do-not-reply at jboss.com
Tue May 12 12:08:58 EDT 2009


anonymous wrote : at org.jboss.injection.EJBRemoteHandler.ejbRefDependency(EJBRemoteHandler.java:146)
  |         at org.jboss.injection.EJBRemoteHandler.handleFieldAnnotations(EJBRemoteHandler.java:393)
  |         at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:160)
  | 

I guess you are using @EJB injection inside a bean which belongs to a different jar. As a workaround, specify the mappedName attribute which points to the JNDI name of the other bean:

// assuming DataSourceFinderBean is the jndi name of the remote interface of the
  | // bean
  | @EJB (mappedName="DataSourceFinderBean")
  | private  DataSourceFinderRemote bean;

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230553#4230553

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230553



More information about the jboss-user mailing list