• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

problem of running j2ee

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like the EJB is not bound to that name.
Check you JNDI name for the EJB (SimpleConverter).
--Rick
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic