Hi,
I'm using Glassfish (Sun
Java System Application Server 9.1_01 (build b09d-fcs)).
I've deployed an
EJB (Stateless Session Bean) in "Applications>EJB Modules" in Glassfish.
I want to access this EJB from a
Servlet, which is deployed in a war file.
The following errors are rising:
com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref
javax.naming.NameNotFoundException:
My code:
Servlet:
EJB:
sun-ejb-jar.xml:
in web.xml I put:
What should I do to make this work?
SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS