Your client should have the following in its classpath runtime command:
    -classpath D:\WebLogic\classes;D:\WebLogic\lib\weblogicauz.jar... and the rest of the stuff from your example.
 
    In contrast to your total ruthless bashing of Weblogic, I found it pretty easy to use.   After spending about 8 hours reading their docs and fiddling with their tools, I was able to deploy and begin developing right away, and I had never even used EJB before.
 
take care and good luck,
 
Floyd Marinescu
 

---------------------------------
Senior Architect
The Middleware Company
http://www.middleware-company.com
[EMAIL PROTECTED]
519-888-6264

Need help with EJB / J2EE?  Ask about our on-site training and consulting
services.

 
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of John McDonald
Sent: Tuesday, April 18, 2000 10:18 PM
To: [EMAIL PROTECTED]
Subject: Alright, i'm dopne whining now.

ejb gurus,
 
I have a more specific exception someone may be able to assist with. I am running the HelloBean example from Chapter 4 of Master EJB by Ed Roman. This book is excellent but give no indication as to how to set up the WebLogic app server, even though it's the one they use throughout the book. I'm get the following exception when I attempt to run the client.
 
C:\JBuilder3\java\bin\javaw.exe -classpath "D:\WebLogic\myserver\clientclasses;C:\JBuilder3\lib\dx3.0.jar;C:\JBuilder3\lib\dx3.0-res.jar;C:\JBuilder3\lib\jbcl3.0.jar;C:\JBuilder3\lib\jbcl3.0-res.jar;C:\JBuilder3\lib\jgl3.1.0.jar;C:\JBuilder3\lib\dbswing3.0.jar;C:\JBuilder3\lib\dbswing3.0-res.jar;C:\JBuilder3\lib\pop3.jar;C:\JBuilder3\dependency\~pop3;C:\JBuilder3\lib\activation.jar;C:\JBuilder3\dependency\~Activation;C:\JBuilder3\lib\j2ee.jar;C:\JBuilder3\dependency\~j2ee;C:\JBuilder3\lib\weblogicaux.jar;C:\JBuilder3\lib\weblogicbeans.jar;C:\JBuilder3\dependency\~WebAux;C:\JBuilder3\java\lib\jdkdep.jar;C:\JBuilder3\java\jre\lib\rt.jar;C:\JBuilder3\java\lib\dt.jar;C:\JBuilder3\java\jre\lib\i18n.jar;C:\JBuilder3\java\lib\tools.jar" -Djava.naming.factory.initial=D:\WebLogic\classes\weblogic.jndi.WLInitialContextFactory -Djava.naming.provider.url=t3://localhost:7001 bean.HelloClient
AppAccelerator(tm) 1.2.010 for Java (JDK 1.2), x86 version.
Copyright (c) 1997-1999 Inprise Corporation. All Rights Reserved.
javax.naming.NoInitialContextException: Cannot instantiate class: D:\WebLogic\classes\weblogic.jndi.WLInitialContextFactory. Root exception is
java.lang.ClassNotFoundException: D:\WebLogic\classes\weblogic/jndi/WLInitialContextFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:199)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:49)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:660)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.<init>(InitialContext.java:202)
at bean.HelloClient.main(HelloClient.java:26)
 
I am passing the following parameters to the jvm when I execute from JBuilder3.
-Djava.naming.factory.initial=D:\WebLogic\classes\weblogic.jndi.WLInitialContextFactory -Djava.naming.provider.url=t3://localhost:7001
 
Anyone have any ideas...please????
 
 
-jdm-
web app guru(or at least I thought)
ClientScience.com, Inc.
p 925.373.8700
f  413.793.6603
e [EMAIL PROTECTED]

Reply via email to