cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: Xerces Version
Date Fri, 17 Mar 2000 12:17:32 GMT
Niclas Hedhman wrote:
> Stefano Mazzocchi wrote:
> > 1.7.1 will be released as soon as I find out how to fix the classloading
> > problems for tomcat and for jserv servlet zones. (read: remove the need
> > for cocoon.jar to reside in the classpath).
> You want an answer right away??

of course :)
> I think you can do it by using the context class loader instead of
> Class.forName().
> Such as;
> ClassLoader cl = Thread.currentThread().getContextClassLoader();
> Class cls = cl.loadClass( name );
> Object obj = cls.newInstance();

Will do right away.
> I don't have time to figure out if this will work in JServ, or there are other
> limitations as well, but it is the general approach for loading unknown
> classes (reachable only by the App class loader) from classes loaded by the
> Extension class loader.

Makes perfect sense. will try it out today.
> Hope that helps.

it does, thanks :)

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

View raw message