File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes JNDI issue: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JNDI issue: "domain was null"" Watch "JNDI issue: "domain was null"" New topic

JNDI issue: "domain was null"

Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
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 ]
leonn leonn

Joined: Apr 18, 2004
Posts: 1
I don't know...
Moody Hopkins

Joined: Nov 24, 2003
Posts: 11
Found this on another site and this fixed it for me!
[Accessing EJBs, node 15]

Good luck!
I agree. Here's the link:
subject: JNDI issue: "domain was null"
It's not a secret anymore!