• 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

javax.naming.NamingException: Failed to initialize the ORB exception

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,

I am getting the above exception while trying to call my EJB from a web application deployed on Sunone web server 7.0. The EJB is developed using websphere 6.0 and I have my WAS 6.0 client jar files added in the server.

The confusing part is this: I tried to create a simple java program calling the same EJB, and the java program runs fine.

Only the web portion fails by giving the above exception.

I have these two lines added in both my simple java program code and also in the ActionClass.

properties.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");

properties.put("org.omg.CORBA.ORBClass","com.ibm.CORBA.iiop.ORB");

Action class fails while doing the look up and simple Java program works fine.

Any thoughts will be helpful

Thanks
Atul
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't seem likely to me that the SunOne server would support a naming factory whose class name starts with "com.ibm.websphere".
 
Atul Mishra
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Paul for your suggestion.

So how do we access the EJB which was developed using websphere 6.0 using the Action classes running in sun one web server 7.0 ?

Thanks
Atul
 
Paul Clapham
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't really know.

When I use JNDI, even in Websphere, I don't specify any class for the initial context factory. I suppose by not doing that I am just allowing the system to use its default class. But I don't use EJB or CORBA so it may not be that simple there. I would just take out that line of code for a start and see what happens.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic