File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Lookup method can't find the sesssion bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

Lookup method can't find the sesssion bean

Tom Kowalski
Ranch Hand

Joined: Feb 17, 2009
Posts: 72
// EDIT: I have found the answer (http://www.coderanch.com/t/415033/EJB-Other-Java-EE-Technologies/java/lookup-local-interfaces) the topic can be deleted. sorry.

Bean interface:


Bean class



This is bean, which I deploy with an EE Application. I want to get access to this bean in the servlet, when I am doing this by @EJB injection everything is working. But I can't get the bean through the lookup method



It throws exceptions all the time (javax.naming.NameNotFoundException). Could somebody tell me how to fix it? thanks...

(NetBeans + GlassFish)



SCJP, SCWCD, OCUP
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Tomasz Stachlewski wrote:// EDIT: I have found the answer (http://www.coderanch.com/t/415033/EJB-Other-Java-EE-Technologies/java/lookup-local-interfaces) the topic can be deleted. sorry.


Let's just close this, instead of deleting.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lookup method can't find the sesssion bean
 
Similar Threads
j2ee-1.4 web module and jee5 ejb module??
EJB 3.0 Problems
EjB 3.0 ?
HFEJB C4 Pg 249/256 Q17 - Error
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05