This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
If it's not even deploying then your problem is bigger than just referring the right interface while injecting your EJB. Figure out why are you having problem with this and then you may try to inject as I told you.
Do you have a .ear with an application.xml? You're packaging your EJB's in this war?