On Wed, 14 Feb 2001, you wrote:
> Forgive me if Im missing the obvious. Im new to JNDI, but I just dont see
> how your code could work with nothing in the classpath.
>
> You are directly referencing the SKILLSHome class in your code. Therefore,
> the class loader that is trying to load the SKILLSHome is the system
> classloader (since I see Dynamictest.main in your stack trace). And youve
> just said that SKILLSHome is NOT in the system classpath. So you will
> always get NoClassDefFoundError!
No.
> I think you must either: 1. have SKILLSHome in your classpath or 2. have
> SKILLSHome implement an interface that is in your classpath or 3. Cast your
> PRO.Narrow to an Object and use reflection to call methods on it. or 4.
> reference SKILLSHome directly from a second class which is dynamically
> loaded by a classloader that can see SKILLSHome.
You have assumed that it is not possible to chage the context classloader for a
thread. It is possible to create a new class loader which will download the
classes from an HTTP server; see my other posts for how. Then, when you have
installed this new classloader, you don't need the classes on your system
classpath, because they will be loaded by a child classloader (ie. the one you
have just created).
Tom
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]