jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Problems with Cactus and commons-logging
Date Sat, 14 Dec 2002 21:38:56 GMT


> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@octo.com]
> Sent: 13 December 2002 07:40
> To: 'Cactus Users List'
> Cc: softimedia@bigfoot.com
> Subject: FW: Problems with Cactus and commons-logging
> 
> 
> > -----Original Message-----
> > From: Jerome G. Fillon [mailto:softimedia@bigfoot.com]
> > Sent: 13 December 2002 06:14
> > To: vmassol@octo.com
> > Subject: RE: Problems with Cactus and commons-logging
> >
> > Indeed it is a classLoader problem.
> >
> > I have the same problem with strutsTest.
> >
> > I was able to run my test with the junit.textui.TestRunner and not
> with
> > awtui or swingui.
> >
> > The apache code is breaking when trying to validate that a class
> (Logger
> > JDK1.4 or any other logger) implements the Log Interface... which it
> > does when you look at the code.
> > If you check the apache code, you will find that the code is quite
> > messing around with classloaders to keep the instance of the logger
in
> > the right classloader...
> >
> > The work around when running with junit is:
> >
> > 1) use the textui
> >
> > 2) unchecked the 'reload classes every run' checkbox
> >   when using the gui...

or 3) exclude the classes from the reloading class loader. See
http://jakarta.apache.org//cactus/faq.html#faq8 (and
http://junit.sourceforge.net/doc/faq/faq.htm#runners_1).

> >
> >
> > I'm not registered to the cactus mailing list, so i replied you
> directly.
> >
> > --
> > Jerome
> 


-Vincent


--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message