Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Failed to initialize the ORB - WSAD 5.1.2

800779Oct 28 2006 — edited Oct 28 2006
hi all,
We are trying to implement JUNIT (3.8.1) into our application. Our application has EJBs. The application runs on a WAS 5.1 server. We do our development in WSAD 5.1.2.
In our development environment we wrote a simple test class and tried to run it from the WSAD environment. We added the all the required JARs and fixed the errors one by one.
At present we are stuck with the following error -
javax.naming.NamingException: Failed to initialize the ORB [Root exception is org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.ibm.CORBA.iiop.ORB  vmcid: 0x0  minor code: 0  completed: No]
	at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:265)
	at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:166)
	at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
	at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
	at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:137)
	at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:114)
	at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:68)
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
	at javax.naming.InitialContext.init(InitialContext.java:219)
	at javax.naming.InitialContext.<init>(InitialContext.java:195)
	at  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
Caused by: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.ibm.CORBA.iiop.ORB  vmcid: 0x0  minor code: 0  completed: No
	at org.omg.CORBA.ORB.create_impl(ORB.java:297)
	at org.omg.CORBA.ORB.init(ORB.java:336)
	at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:77)
	at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:174)
	at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:98)
	at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:74)
	at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:386)
	at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:260)
	... 27 more
Caused by: java.lang.NoClassDefFoundError: com/ibm/jvm/ExtendedSystem
	at com.ibm.rmi.util.JDKBridge.setCodebaseProperties(JDKBridge.java:226)
	at com.ibm.rmi.util.JDKBridge.<clinit>(JDKBridge.java:205)
	at com.ibm.rmi.util.RepositoryId.<clinit>(RepositoryId.java:122)
	at com.ibm.rmi.iiop.CDROutputStream.<clinit>(CDROutputStream.java:1077)
	at com.ibm.rmi.corba.ORB.<init>(ORB.java:250)
	at com.ibm.rmi.iiop.ORB.<init>(ORB.java:166)
	at com.ibm.CORBA.iiop.ORB.<init>(ORB.java:521)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:308)
	at java.lang.Class.newInstance(Class.java:261)
	at org.omg.CORBA.ORB.create_impl(ORB.java:295)
	... 34 more
We went through a lot of forums and tried everything we found, it still gives the same error. Has anyone encountered this error? If so, please let us know how you got this fixed or even worked around this.

thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2006
Added on Oct 28 2006
0 comments
353 views