File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The Session bean cannot be deployed

 
ignacio giagante
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to check; have you tried using @Local instead of @Remote?
Just to be sure you are using the Remote annotation correctly
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic