You need to have the weblogic/server/classes directory on your classpath.
Before posting here did you post to the weblogic newsgroups. I think next
time this would be more apropriate.

William Louth
Inprise

www.inprise.com/appserver

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Ashish Bhatia
Sent: Wednesday, August 30, 2000 8:12 AM
To: [EMAIL PROTECTED]
Subject: Another Weblogic issue


Hi,
        I have written a stateless session bean and a java bean to access
this stateless session bean. The EJB is deployed in Weblogic 5.0 sp4. The
following error message is displayed whenever the client program tries to
get the initial context.

Please help as to where am I going wrong.


C:\jdk1.3\bin\java.exe   client
Working Directory - C:\ntt\
Class Path -
c:\jdk1.3\lib\tools.jar;c:\jdk1.3\bin;c:\jdk1.3\jre\lib\rt.jar;C:\j2sdkee1.2
.1\lib\j2ee.jar;C:\ntt\LoginProject.jar

Naming Excepton occurredCannot instantiate class:
weblogic.jndi.WLInitialContextFactory

Cannot instantiate class: weblogic.jndi.WLInitialContextFactory

javax.naming.NoInitialContextException: Cannot instantiate class:
weblogic.jndi.WLInitialContextFactory.  Root exception is
java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory

        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        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
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:655)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
        at javax.naming.InitialContext.init(InitialContext.java:222)
        at javax.naming.InitialContext.<init>(InitialContext.java:198)
        at WorkerLoginBean.validateLogon(WorkerLoginBean.java:102)
        at client.main(client.java:11)
Caught an unexpected exception!

java.lang.Exception
        at WorkerLoginBean.validateLogon(WorkerLoginBean.java:129)
        at client.main(client.java:11)

Thanks
Ashish Bhatia


Visit http://www.NetVarsity.com for online learning

===========================================================================
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".

===========================================================================
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".

Reply via email to