DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Failed to initialize the ORB - WSAD 5.1.2

  1. #1
    Join Date
    Oct 2006
    Posts
    1

    Failed to initialize the ORB - WSAD 5.1.2

    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(WsnInitialContextFacto ry.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:3 9)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImp l.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.
    Last edited by crazyideas; 10-28-2006 at 08:11 AM.

Similar Threads

  1. Replies: 5
    Last Post: 11-13-2009, 02:28 AM
  2. Replies: 0
    Last Post: 10-03-2002, 08:05 PM
  3. Replies: 1
    Last Post: 03-14-2002, 12:42 PM
  4. VBAJET.dll failed to initialize Error 3447???
    By Larry Woods in forum VB Classic
    Replies: 0
    Last Post: 08-15-2000, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center