Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with InitialContext

1 view
Skip to first unread message

Ingo Adler

unread,
Oct 6, 2000, 3:00:00 AM10/6/00
to
Hi,

in my EJB-Client, I try to connect to the EJB using:

Properties props = new Properties();
props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
props.put(javax.naming.Context.PROVIDER_URL, "iiop://test:900");
ctx = new InitialContext(props);

In the last line I get the following Exception:

java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/ORB
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.omg.CORBA.ORB.create_impl(ORB.java:284)
at org.omg.CORBA.ORB.init(ORB.java:328)
at com.ibm.CORBA.iiop.GlobalORBFactory.init(GlobalORBFactory.java:42)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:196)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:93)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:47)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:343)
at
com.ibm.ejs.ns.jndi.CNInitialContextFactory.initORB(CNInitialContextFactory.
java:355)
at
com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialConte
xtFactory.java:196)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)

I inluded:
ejs.jar
ujc.jar

in the classpath.

I looked through the libs, I couldn't find com/ibm/rmi/iiop/ORB.

What's wrong?

Ingo Adler

Callistus Chui

unread,
Oct 6, 2000, 3:00:00 AM10/6/00
to
Ingo,

Hell with the jars. Are you using WAS 3.5? If that's the case, then you
might want to check $WAS_HOME\jdk\jre\lib\ext. The class is in iioprt.jar
there.

CChui

"Ingo Adler" <ingo....@qbic.ch> wrote in message
news:8rkopg$oeo$1...@news.software.ibm.com...

Ingo Adler

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to
> Hell with the jars. Are you using WAS 3.5? If that's the case, then you
> might want to check $WAS_HOME\jdk\jre\lib\ext. The class is in iioprt.jar
> there.

I'm using WAS 3.5.
The class com.ibm.rmi.iiop.ORB is not there.

Ingo


Ingo Adler

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to


But it's in rmiorb.jar.
One still needs iioprt.jar though.

Ingo

Mike Pettypiece

unread,
Oct 10, 2000, 3:00:00 AM10/10/00
to
It sounds like you're having the same problem I was. Is your client
using the IBM JDK? If not, I suggest that you do. Not using it can
cause some nasty problem, including the one below. IBM JDK 1.2.2 comes
with WebSphere 3.5, and is located on Supplemental Disk 1/2 of the
retail CDs.

In article <8rkopg$oeo$1...@news.software.ibm.com>,


"Ingo Adler" <ingo....@qbic.ch> wrote:
> Hi,
>
> in my EJB-Client, I try to connect to the EJB using:
>
> Properties props = new Properties();
> props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
> "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
> props.put

(javax.naming.Context.PROVIDER_URL, "iiop://test:900");


Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages