This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem of running j2ee  RSS feed

 
duole
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, all:
I'm trying to run sun's j2ee tutorial example. after I entered the user name and password, i got the below problem. Can anybody tell me what's wrong with it?Thank you.
Binding name:`java:comp/env/ejb\SimpleConverter`
Caught an unexpected exception!
javax.naming.NameNotFoundException: No object bound to name
java:comp/env/ejb/SimpleConverter at
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl. java:578)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:90)
at ConverterClient.main(ConverterClient.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at
com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:229)
at com.sun.enterprise.appclient.Main.main(Main.java:155)
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like the EJB is not bound to that name.
Check you JNDI name for the EJB (SimpleConverter).
--Rick
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java:comp/env/ejb\SimpleConverter
Look at all the slashes? You need to have ejb/SimpleConverter (note forward slash), when you specify JNDI name in deploytool.
Also there is a mapping between JNDI name and the name used in the client (remember theConverter and MyConverter?) double check that mapping.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!