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.
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?
subject: How do I get an instance of a Stateless Session EJB deployed alone in Glassfish, from a Servlet?