Thanks for the info. So am I right in assuming that dynamic classloading is only available for the class I place in my ejb-jar?
-jason
| Scott M Stark <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 06/20/2001 12:14 PM
|
To: [EMAIL PROTECTED] cc: Subject: Re: [JBoss-user] Dynamic classloading |
You need the all of the xxx-client.jar file located in the client directory
of the jboss dist to run. This includes the jnp-client.jar that has the file
org.jnp.interfaces.NamingContextFactory your missing. This cannot
be downloaded dynamically from the server.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 8:08 AM
Subject: [JBoss-user] Dynamic classloading
> Hi all,
>
> I'm having a problem with dynamic classloading. I have a simple,
> stand-alone client running under JDK1.3. My understanding is that since I
> already have the naming code, everything else can be loaded dynamically
> from the server.
>
> I have installed a security manager in my code, by calling:
> System.setSecurityManager(new RMISecurityManager());
>
> When I run my client, I get this error:
>
> Exception in thread "main" javax.naming.NoInitialContextException: Cannot
> instantiate class: org.jnp.interfaces.NamingContextFactory. Root
> exception is java.lang.ClassNotFoundException:
> org.jnp.interfaces.NamingContextFactory
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at com.sun.naming.internal.VersionHelper12.loadClass(Unknown
> Source)
> at javax.naming.spi.NamingManager.getInitialContext(Unknown
> Source)
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
> at javax.naming.InitialContext.init(Unknown Source)
> at javax.naming.InitialContext.<init>(Unknown Source)
> at Client.<init>(Client.java:71)
> at Client.main(Client.java:93)
>
>
> Obviously, it's not able to get at the jnp-client code. I have also tried
> creating a policy file, and passing that into the client VM via the
> java.security.policy param. Anybody have any other ideas? (I'm using
> JBoss from CVS as of a few days ago)
>
> -Jason
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
