Hello, I'm trying to do a loopup in a JNDI-Tree on Websphere. When i'm creating the context: Context ctx = new InitialContext(); With this JNDI.properties: java.naming.factory.initial= com.ibm.websphere.naming.WsnInitialContextFactory java.naming.provider.url= iiop://localhost:2809 I'm getting an Exception: Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ObjectURL at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.ibm.websphere.naming.WsnInitialContextFactory.init_implClassCtor(WsnInitialContextFactory.java:168) at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:108) at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:69) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.<init>(Unknown Source) Is there anybody who can help me? I cann't find this: com/ibm/CORBA/iiop/ObjectURL Thanx, Marco
Joined: Sep 20, 2004
The class that is missing, com/ibm/CORBA/iiop/ObjectURL can be found in ibmorb.jar which is a part of the IBM jdk. I would suggest you include all the jars of IBM JDK in your classpath. The IBM jdk is located at the following location, [WEBSPHERE_HOME]/java/jre/lib/ext This should work.