I believe your problem is different from Aklil's one and that you are
missing (somewhere, don't know where :( ) a jar or project in your
classpath. I would say probably on the client side.

How do you start junit in VAJava ? From the speed menu (right click on your
class to run, tools, test runner) ? Or by running your test case class which
contains a main() that start the junit test runner ?

-Vincent

----- Original Message -----
From: "Nick Chalko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 10:52 PM
Subject: RE: VAJ 3.5.3 Class loader problem


>
> 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
>
>
>

Reply via email to