File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NameNotFoundException with SUN's Application Server 8.1

 
X. Li
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I created CMP Entity bean with <ejb-name> = Entity1Bean, and the same name is used as "jndi Name" in "Sun-specific Settings" of Application Server 8.1.
After I deployed it, and run a test client from console (while default Server was started), I got exception:
javax.naming.NameNotFoundException: Entity1Bean

Here is my client code:


BTW, I also tried to use JNDI_NAME="java:comp/env/Entity1Bean" or JNDI_NAME="java:comp/env/ejb/Entity1Bean", but got the same exception.

Did anyone meet the case and solve it? Thanks for any help.

X. Li
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic