File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Dependency injecton failed with Glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Dependency injecton failed with Glassfish" Watch "Dependency injecton failed with Glassfish" New topic
Author

Dependency injecton failed with Glassfish

Andras Nemeth Ii
Greenhorn

Joined: Jul 06, 2011
Posts: 2
Hi!

I'm trying Glassfish 3.1 with Eclipse 3.6. I have a very simple session bean:



And a web module where I would like to use the bean this way:




When I use the DI the result will be nothing. (st remains null) When try to recieve the bean via jndi lookup i get a java.lang.NoClassDefFoundError: session/SessionTest message on the lookup line. What do I mess up? It seems so simple...

Thanks!
Andras Nemeth Ii
Greenhorn

Joined: Jul 06, 2011
Posts: 2
The full stacktrace of the exception:


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dependency injecton failed with Glassfish
 
Similar Threads
EJB 3.0 Problems
problem in entity bean with local interfaces
How to run HelloWorld example in GlassFish Tools Bundle For Eclipse Version: 1.2
Java SE6 client for EJB - Error in lookup
Lookup method can't find the sesssion bean