This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes NameNotFoundException with SUN's Application Server 8.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "NameNotFoundException with SUN Watch "NameNotFoundException with SUN New topic
Author

NameNotFoundException with SUN's Application Server 8.1

X. Li
Ranch Hand

Joined: Jan 31, 2004
Posts: 61
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
 
Don't get me started about those stupid light bulbs.
 
subject: NameNotFoundException with SUN's Application Server 8.1
 
Similar Threads
provider_url for datasource
WebSphere MQ JMS Question
ClassCastException returned from PortableRemoteObject.narrow
use JSP as EJB client
EJB and Sun One Application server