cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <pati_giac...@yahoo.com>
Subject Re: [C2] ClassLoader issues
Date Wed, 30 Aug 2000 07:46:59 GMT

--- "Pier P. Fumagalli" <pier@apache.org> wrote:
> Sebastien Sahuc wrote:
> > 
> > Hello,
> > 
> > While debugging inside Cocoon2 with the lastest snapshot from CVS,
> I
> > realized that there was some Class loader issues :
> > 
> > in the Coccon.getClass() method, the instrcution
> > 'this.getClass().getClassLoader().loadClaa(className)' gave me a
> NPE due
> > to the fact that claa.getClassLoader() can return null (from JDK
> 1.2
> > Javadoc ).
> > 
> > So I would rather use the new (since 1.2)
> > Thread.currentThread.getContextClassLoader() instead, since it's
> the
> > container's role to set the correct ClassLoader that's been used by
> the
> > servlet application.
> > 
> > What do you think ?
> > 
> > All the best,
> 
> That was my first implementation... But I was shot because I was
> breaking JDK 1.1 compatibility :) :) 
> 
> BLAH! to all those who voted -1 on using the context class loader at
> that time :) :) :) 

I was told that the Avalon classloder will be the one to use and it
should solve the problem with xsp having all needed jars in the
tomcat/lib instead of the WEB-INF/lib. Any comments on that?

Giacomo


=====
--
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message