jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Nisseron <florent.nisse...@softeam.fr>
Subject Re: log4j and cactus
Date Mon, 11 Feb 2002 07:46:00 GMT
Here are the used files.

Unfortunatly, if i use the original cactus.jar with no properties file 
in my classpath the messages are the same !

Florent

Vincent Massol wrote:

>Florent,
>
>Could you resend these files as attachement as the carriage return are
>not shown properly in the email below ?
>
>Also, if you restore the original cactus.jar file and do not put any
>log_client.properties or log_server.properties in your classpath, do you
>still have the error you mention below ?
>
>Thanks
>-Vincent
>
>>-----Original Message-----
>>From: Florent Nisseron [mailto:florent.nisseron@softeam.fr]
>>Sent: 08 February 2002 14:00
>>To: Cactus Users List
>>Subject: Re: log4j and cactus
>>
>>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:florent.nisseron@softeam.fr]
>>>>Sent: 08 February 2002 13:18
>>>>To: cactus-user@jakarta.apache.org
>>>>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-
>>>>unsubscribe@jakarta.apache.org>
>>>>For additional commands, e-mail: <mailto:cactus-user-
>>>>help@jakarta.apache.org>
>>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   <mailto:cactus-user-
>>>
>>unsubscribe@jakarta.apache.org>
>>
>>>For additional commands, e-mail: <mailto:cactus-user-
>>>
>>help@jakarta.apache.org>
>>
>>>
>>>
>
>
>
>
>--
>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