This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Corba ORB exception while creating InitialContext

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: IDL:omg.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)


 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic