cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Xerces Version
Date Fri, 17 Mar 2000 13:40:42 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??
> 
> 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();

On second thought, this is JDK 1.2 so can't use it for Cocoon 1.x 

But it's a good suggestion anyway... we'll use it for Cocoon2 that will
be JDK 1.2 based.

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



Mime
View raw message