*
The moose likes EJB and other Java EE Technologies and the fly likes The Session bean cannot be deployed 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 "The Session bean cannot be deployed" Watch "The Session bean cannot be deployed" New topic
Author

The Session bean cannot be deployed

ignacio giagante
Greenhorn

Joined: Apr 11, 2011
Posts: 5
Hi, I'm researching about EJB and I did a simple example, but when I try to call a method through an instance of a resource injected by using the @EJB annotation I got an null pointer exception. My conclusion is my beans is not being injected and that's way I cannot use the services offers by the contract interface bean.

I'm working on eclipse with JBoss 4.0.5 GA. I created an EJB project and then I added it to the JBoss Server. This is code...



thanks for the help!
Nico Van Brandt
Ranch Hand

Joined: Mar 31, 2011
Posts: 66

Just to check; have you tried using @Local instead of @Remote?
Just to be sure you are using the Remote annotation correctly


Oracle Java SE6 Certified Programmer
Oracle Java EE5 Certified Web Component Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The Session bean cannot be deployed
 
Similar Threads
Hello world example using EJB 3
PortableRemoteObject exception
JBOSS error with helloworld
class casting with ejb
Facing Problem in Deploying EJB in Jboss 4.2.2 GA