----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 05, 2001 9:33 PM
Subject: Re: cactus/jbuilder/jrun


>
> log4j.properties  file also should be in your classpath.  See log4j
> docucment for more detail.

Yes, but Cactus initialize Log4j itself from its own properties file. The
solution is described in
http://jakarta.apache.org/cactus/configuration.html. Once you have added
your category to the Cactus properties file, simply write :

public void testXXX()
{
  logger.debug("xxxxx");
...
}

where logger is a log4j category inherited from XXXTestCase.

>
>
>
>
>                     "Zhang, Li"
>                     <Li.Zhang@eal        To:
"'[EMAIL PROTECTED]'"
>                     .ab.ca>              <[EMAIL PROTECTED]>
>                                          cc:
>                     10/05/01             Subject:     cactus/jbuilder/jrun
>                     04:13 PM
>                     Please
>                     respond to
>                     cactus-user
>
>
>
>
>
>
> Dear Cactus guru:
>
> I've finally got cactus/jbuilder/jrun working together. I did my first
> testcase to test an EJB. It worked pretty good.
>
> Now I want to make the log4j work with cactus - I got "No appenders could
> be
> found for category (HDAgentTest). Please initialize the log4j system
> properly" error message. The "log4j-core.jar" is in my classpath.
>
> Could any one point me why I got this error? How can I have log4j worked
> for
> me?
>
> Thanks.
>
> Li
>
>
>
>

Reply via email to