> Date: Wed, 27 Nov 2002 17:27:04 +0530 > From: Ashwani Kalra <[EMAIL PROTECTED]> > Subject: Exception on websphere while creating InitialContext. > > This is a multi-part message in MIME format. > > ------=_NextPartTM-000-e73b8a2e-01d4-11d7-b295-00b0d0688b56 > Content-type: text/plain; charset=us-ascii > > Hi, > > the code below > > ctx = new InitialContext(p); > > Where P is Properties object which has > PROVIDER_URL="iiop://localhost:9019"; > INITIAL_CONTEXT_FACTORY="com.ibm.ejs.ns.jndi.CNInitialContextFactory"; > > is giving me following exception > > java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/ORB > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:488) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:243) > at java.net.URLClassLoader.access$100(URLClassLoader.java:51) > at java.net.URLClassLoader$1.run(URLClassLoader.java:190) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:183) > at java.lang.ClassLoader.loadClass(ClassLoader.java:294) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281) > at java.lang.ClassLoader.loadClass(ClassLoader.java:250) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) > at com.ibm.ejs.ras.TraceEvent.<init>(TraceEvent.java:612) > > Do I require this class. Where it will be ? > > I am using WAS 4.0 AE > > TIA > Ashwani >
Ashwani: Are you running an application in stand-alone client mode? If so, you may want to start it using the client application start-up script, which runs your app from the application .ear file. This is documented in the WAS manuals. Running with the IBM JDK is probably a must for avoiding context problems. -- Tom Marsh mailto:[EMAIL PROTECTED] http://www.nitesco.com =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
