• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NameNotFoundException make me crazy

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I use OC4J 903 and Jbuilder 8 with oc4j plugin to start a project.
At the begining, I write a very simple stateless session bean called HelloWorld which is its jndi name and create another client to call HelloWorld bean, but when I run the client to call session bean, it throws NameNotFoundException to tell me HelloWorld is not found. That is a quite a simple test and I am pretty sure everything in the package like ejb-jar.xml orion-ejb.xml etc.
Can anyone guide me what is the problem?
I test this simple app on my XP machine with OC4J based on JDK1.4.
My ear file is named info_eai.ear and my context env is
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL,"admin");
env.put(Context.SECURITY_CREDENTIALS,"123456");
env.put(Context.PROVIDER_URL, "ormi://localhost:23791/info_eai");
then I look up "HelloWorld" which is a jndi name, but fail again.
I notice no matter what version oracle 9i AS is , it doesn't have announced to support windows xp which is the os I am using now. I wonder whether windows xp cause the jndi lookup failuare(NameNotFoundException)?
I just do a quite simple hello world ejb which I played on weblogic/jboss tons of times without any problems, but sucks at oracle. Can anyone help me out ?
Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic