In fact, I start to use the default configuration files
Then I try some changes to set another fileName or use the consoleAppender
I Put those files into cactus.jar instead of previous ones
I have always the same errors described in my previous mail.

Here are the files :
<<<<log_client.properties<<<<<<<<<
# Properties for configuring Log4j
# This is the configuring for logging on the JUnit side (i.e. the client 
side)

log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File = d:\tmp\cactus_client.log
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p 
%-30.30c{2} %x - %m %n

# Any application log which uses Log4J will be logged to the Cactus log file
log4j.rootCategory=DEBUG, cactus

# By default we don't log at the DEBUG level for Cactus log, in order 
not to generate too
# many logs. However, should a problem arise and logs need to be sent to 
the Cactus dev team,
# then we will ask you to change this to DEBUG.
log4j.category.org.apache.cactus = WARN, cactus
log4j.additivity.org.apache.cactus=false
<<<<<<<<<<<<<<<<<<<<<<<<<<<<

<<<<log_server.properties<<<<<<<<<<<<<

# Properties for configuring Log4j
# This is the configuring for logging on the server side

log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File = d:\tmp\cactus_server.log
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p 
%-30.30c{2} %x - %m %n

# Any application log which uses Log4J will be logged to the Cactus log file
log4j.rootCategory=DEBUG, cactus

# By default we don't log at the DEBUG level for Cactus log, in order 
not to generate too
# many logs. However, should a problem arise and logs need to be sent to 
the Cactus dev team,
# then we will ask you to change this to DEBUG.
log4j.category.org.apache.cactus = WARN, cactus
log4j.additivity.org.apache.cactus=false
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

I hoppe you find and error !!!

Florent

Vincent Massol wrote:

>Florent,
>
>Can you show us the log4j configuration file you're using. It seems it
>contains some bad declarations.
>
>Thanks
>-Vincent
>
>>-----Original Message-----
>>From: Florent Nisseron [mailto:[EMAIL PROTECTED]]
>>Sent: 08 February 2002 13:18
>>To: [EMAIL PROTECTED]
>>Subject: log4j and cactus
>>
>>Hi,
>>
>>I try to use the log4j-core.jar provided with cactus 1.3 and I have
>>
>got
>
>>some trouble.
>>when i run the test class i have got following messages :
>> >>>>>>>>>>><<
>>log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
>>assignable to a "org.apache.log4j.Appender" variable.
>>log4j:ERROR Could not instantiate appender named "cactus".
>>log4j:WARN No appenders could be found for logger
>>(org.apache.cactus.util.JUnitVersionHelper).
>>log4j:WARN Please initialize the log4j system properly.
>> >>>>>>>>>>><<
>>
>>Does anybody has an idea ?
>>I try to follow the How to from cactus to configure Log4j but I did
>>
>not
>
>>sawn anything going wrong in my configuration
>>
>>Thanks for advance
>>
>>Florent
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:cactus-user-
>>[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:cactus-user-
>>[EMAIL PROTECTED]>
>>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>

Reply via email to