Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@EJB annotation is not working in weblogic 10.3

 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have created a simple stateless session bean in EJB 3.0 by using annotations. The deployment is successful. Even i am able to do the lookup by using JNDI look up.
But the problem is when i use @EJB annotaion to lookup for the bean its giving NullPointerException ( not able to find the bean). My Session Bean and WebApp(client) are running in the same Weblogic server.

Any help to resolve this issue ?


Thanks,
Murali
 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why no one is replying to my post. Is this not a Weblogic forum?
 
Mainak Goswami
Ranch Hand
Posts: 52
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Murali,

Unfortunately I am facing the same problem in Weblogic 11g version. Not very sure. Just in case you have resolved this issue kindly let me know.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
murali

I think it would helpful if you provided a little extra info here. Like, show the code which works (using JNDI) and the code which doesn't (using annotation).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic