jQuery in Action, 2nd edition*
The moose likes BEA/Weblogic and the fly likes @EJB annotation is not working in weblogic 10.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "@EJB annotation is not working in weblogic 10.3" Watch "@EJB annotation is not working in weblogic 10.3" New topic
Author

@EJB annotation is not working in weblogic 10.3

murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
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

Joined: Nov 15, 2004
Posts: 110
Why no one is replying to my post. Is this not a Weblogic forum?
Mainak Goswami
Ranch Hand

Joined: May 21, 2006
Posts: 50

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.

------------------------------------
Mainak
idiotechie
------------------------------------
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1030
    
    5

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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @EJB annotation is not working in weblogic 10.3