Failed to initialize the ORB Exception
Recently I was working with some EJBs. I use Web Sphere 6.1 as the EJB container. And in the lookup jndi method I encountered an exception “Failed to initialize the ORB Exception”. My application also has a
Jboss version also and it worked fine. So after some searchings I have found that I have to add some VM parameters to do the work. So addition of following parameters solved the problem.
org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB
org.omg.CORBA.ORBSingletonClass=com.ibm.rmi.corba.ORBSingleton
javax.rmi.CORBA.StubClass=com.ibm.rmi.javax.rmi.CORBA.StubDelegateImpl
javax.rmi.CORBA.PortableRemoteObjectClass=com.ibm.rmi.javax.rmi.PortableRemoteObject
javax.rmi.CORBA.UtilClass=com.ibm.ws.orb.WSUtilDelegateImpl
My IDE was JIdea. When I tried to run the application in JIdea, I have encounterd the same problem gin. I tried adding VM parametrs in Edit Configuration window. But it never worked. I still looking for a solution.
But as a temporary fix, I used the IBM JVM provided with the web sphere installation and it solved the problem for now.