javax.naming.NamingException: Failed to initialize the ORB" The stack trace of the exception is:
- Code: Select all
[Root exception is java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl]
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:318)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:392)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
at com.ibm.ws.naming.util.WsnInitCtx.getNameInNamespace(WsnInitCtx.java:702)
at javax.naming.InitialContext.getNameInNamespace(InitialContext.java:497)
at hermes.browser.model.tree.ContextTreeNode.setContext(ContextTreeNode.java:92)
at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:65)
at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:70)
at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:60)
at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:309)
... 13 more
2007-06-04 15:04:31,187 [Hermes ThreadPool-3] ERROR hermes.browser.tasks.HermesBrowserTaskListener - Failed to initialize the ORB
hermes.HermesException: Failed to initialize the ORB
at hermes.browser.model.tree.ContextTreeNode.setContext(ContextTreeNode.java:174)
at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:65)
at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:70)
at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:60)
at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:595)
javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl]
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:318)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:392)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
at com.ibm.ws.naming.util.WsnInitCtx.getNameInNamespace(WsnInitCtx.java:702)
at javax.naming.InitialContext.getNameInNamespace(InitialContext.java:497)
at hermes.browser.model.tree.ContextTreeNode.setContext(ContextTreeNode.java:92)
at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:65)
at hermes.browser.model.tree.ContextTreeNode.<init>(ContextTreeNode.java:70)
at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:60)
at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:309)
... 13 more
I did the following to catch this exception - using Hermes 1.12:
- Options->Configuration->
- Class:hermes.JNDIConnectionFactory; Loader: WAS 6.1
- Options->Configuration->Providers
- ClasspathGrup: WAS 6.1
- Library:
- C:\Programme\IBM\SDP70\runtimes\base_v61\plugins\com.ibm.ws.sib.server_2.0.0.jar
- C:\Programme\IBM\SDP70\runtimes\base_v61\plugins\com.ibm.ws.sib.utils_2.0.0.jar
- C:\Programme\IBM\SDP70\runtimes\base_v61\plugins\com.ibm.ws.sib.wccm_2.0.0.jar
- C:\Programme\IBM\SDP70\runtimes\base_v61\runtimes\com.ibm.ws.admin.client_6.1.0.jar
- C:\Programme\IBM\SDP70\runtimes\base_v61\java\jre\lib\ibmorb.jar
- put com.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB in a property file which is referenced in the configuration (next bullet point).
- loader: WAS 6.1
- providerURL: iiop://localhost:2809
- initialContextFactory: com.ibm.websphere.naming.WsnInitialContextFactory
- userPropertiesFile: C:\ApplicationDeveloper\workspace\hermesJMS\was61.properties (see above)
Thanks for your help!
Regards, Gunnar
