This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1012
    
    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
 
Similar Threads
Lookup EJB3 from web app in weblogic
iPlanet 4.1 Enterprise Edition SP9 unable to lookup EJB on Weblogic 5.1
EJB lookup and Jboss SEAM
how to call an ejb from ejb in Weblogic 7
EJB lookup and Jboss SEAM