File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 973
    
    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).
 
Don't get me started about those stupid light bulbs.
 
subject: @EJB annotation is not working in weblogic 10.3
 
Similar Threads
iPlanet 4.1 Enterprise Edition SP9 unable to lookup EJB on Weblogic 5.1
how to call an ejb from ejb in Weblogic 7
EJB lookup and Jboss SEAM
Lookup EJB3 from web app in weblogic
EJB lookup and Jboss SEAM