Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - Problems with Reference Injection for
 @EJB-Annotation

scott.stark@jboss.org

2007-07-16


Hi,
I'm using the latest JEMS installer for my EJB3 project (no SEAM). I have trouble with the @EJB Annotation. To validate my problem I copied the Calculator und ShoppingCart bean to my workspace and added a @EJB Annotation to a new private Calculator field in the ShoppingCartBean class.
Exception:
anonymous wrote : [exec] 18:00:22,859 INFO [JmxKernelAbstraction] installing MBean:
| jboss.j2ee:jar=ejb.jar,name=ShoppingCartBean,service=EJB3 with
| dependencies:
|    [exec] 18:00:22,890 WARN [ServiceController] Problem starting service jboss.j2ee:jar=ejb.jar,name=ShoppingCartBean,service=EJB3
|    [exec] java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ShoppingCartBean: reference class:
| de.inno.rep.test.Calculator ejbLink: not used by any EJBs
|    [exec] at
| org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:88)
|    [exec] at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:466)
|    [exec] at
| org.jboss.ejb3.SessionContainer.start(SessionContainer.java:121)
|    [exec] at
| org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:9
| 1)
|    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
| Method)
|

Thanks in advance!

Markus

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064719
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.