I tried
public abstract class AbstractHttpClient
{
/**
* The logger
*/
static { LogService.getInstance().init("/log_client.properties"); }
private static Log logger =
LogService.getInstance().getLog(AbstractHttpClient.class.getName());
...
But still no luck.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 17, 2001 6:50 PM
To: [EMAIL PROTECTED]
Subject: RE: VAJ 3.5.3 Class loader problem
I just added a static initialiser for the logger in the AbstractHttpClient
class and it works fine. That is, before the call to getLog(), the
following line:
static { LogService.getInstance().init("/log_client.properties"); }
I don't currently want to use Log4J so there will only be a dummy
implementation that does nothing (place holder). But adding Log4J to class
path works fine as well.
So, If I understand the Cactus framework ... the only other times an
initialiser is called is in the ServletTestRedirector and JspTestRedirector
classes, which are both on the server side. But I assume that
AbstractHttpClient is on the client side (given away by the name), so the
Redirector initialisers don't have effect for the AbstractHttpClient
class??
Please feel free to correct me if I'm wrong in adding the above line or if
there is a flaw in my thinking.
Thanks
Aklil