Beans are loaded from a separate class loader, which has its own
classpath set by -Dweblogic.class.path= on the java command line.

You should have something like this in the VM parameters in the jbuilder
run dialog (in project properties)
-Dweblogic.class.path=c:\opt\weblogic451\lib\weblogic451sp7.jar;
c:\opt\weblogic451\license;
c:\opt\weblogic451\classes;
c:\opt\weblogic451\myserver\serverclasses;
c:\opt\weblogic451\lib\weblogicaux.jar;
c:\devel\java\classes;

Of course you will have to take out the line feeds I put in for e-mail
formatting, and customize the paths for your environment, including bean
jars.
See the weblogic documentation for more info.

Hope that helps.



>----------
>From:  John McDonald[SMTP:[EMAIL PROTECTED]]
>Reply To:      A mailing list for Enterprise JavaBeans development
>Sent:  Tuesday, April 18, 2000 10:17 PM
>To:    [EMAIL PROTECTED]
>Subject:       Alright, i'm dopne whining now.
>
><<File: ATT04741.html>>
>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\l
>ib\dx3.0-res.jar;C:\JBuilder3\lib\jbcl3.0.jar;C:\JBuilder3\lib\jbcl3.0-res.ja
>r;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\~pop
>3;C:\JBuilder3\lib\activation.jar;C:\JBuilder3\dependency\~Activation;C:\JBui
>lder3\lib\j2ee.jar;C:\JBuilder3\dependency\~j2ee;C:\JBuilder3\lib\weblogicaux
>.jar;C:\JBuilder3\lib\weblogicbeans.jar;C:\JBuilder3\dependency\~WebAux;C:\JB
>uilder3\java\lib\jdkdep.jar;C:\JBuilder3\java\jre\lib\rt.jar;C:\JBuilder3\jav
>a\lib\dt.jar;C:\JBuilder3\java\jre\lib\i18n.jar;C:\JBuilder3\java\lib\tools.j
>ar"
>-Djava.naming.factory.initial=D:\WebLogic\classes\weblogic.jndi.WLInitialCont
>extFactory -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.WLInitialCont
>extFactory -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]
>

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