• 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

JNDI issue: "domain was null"

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, Orion wizards. Try this one...
I am calling an orion instance remotely with a command line client with success. I add the jar with my ejb's in it and orion.jar to the path, and I set the jndi params explicitly in the code...

This works perfectly.
So, I slap this into a servlet, which I have in a webapp, and in turn inside orion.
When I call the servlet, I get the following error:
java.lang.NullPointerException: domain was null
at com.evermind._bp._rhc(.:477)
at com.evermind._bp._jmb(.:546)
at com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(.:159)
at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(.:156)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
...
What the heck am I doing wrong here?
[ July 24, 2002: Message edited by: Chris Reeves ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know...
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found this on another site and this fixed it for me!

http://otn.oracle.com/tech/java/oc4j/904/collateral/OC4J-FAQ-EJB-904.html
[Accessing EJBs, node 15]

Good luck!
 
reply
    Bookmark Topic Watch Topic
  • New Topic