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

Corba ORB exception while creating InitialContext  RSS feed

 
Johann Dobbins
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be slightly off topic, but I could desperately use some help. I am adding a standalone ejb client to an existing project. The project has some corba ORB stuff going on somewhere which is used for setting retrieval (this is not a subject I'm very familiar). My client connects (attempts to connect) to a Glassfish V2 instance on a separate machine. I get the below stack trace when I try to create an InitialContext. In order to confirm this isn't a classpath or properties or whatever else issue, I created a dummy program, which runs in the same environment with the same classpath settings as the client. The dummy just contains a main method that creates an InitialContext for my glassfish instance, and the dummy is successful.

Any thoughts or advice would be greatly appreciated.


warning: ORB.init: initializer class com.sun.enterprise.iiop.J2EEInitializer not found
warning: ORB.init: initializer class com.sun.enterprise.iiop.FailoverIORInterceptor not found
Jan 7, 2009 12:55:38 PM com.sun.enterprise.util.ORBManager initORB
SEVERE: UTIL6009:Unexcpected Exception in createORB.
org.omg.CORBA.ORBPackage.InvalidName: IDLmg.org/CORBA/ORB/InvalidName:1.0
at com.ooc.OB.InitialServiceManager.resolveInitialReferences(Unknown Source)
at com.ooc.OBCORBA.ORB_impl.resolve_initial_references(Unknown Source)
at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:548)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:178)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)


 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Johann,

Your best bet is to pursue this in the GlassFish forums.

Off hand, it looks like a clustering mis-configuration or some kind of network/routing issue. The other possibility is that jndi.properties is not set correctly or you aren't connecting to the right JNDI instance somehow.

Sorry can't help you further,
Reza
 
Jerwin Louise Uy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to pass the following parameters -



The code above assumes default binding in the RMI registry. Refer to glassfish docs for more information.

I hope this helps.

Regards.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!