Hello,
I still have the problem with log4j. I start to look for a solution and 
I have found more information.

I  replace the log4j-core.jar delivered with cactus by the log4j.jar and 
log4j-core.jar found in the 1.1.3 release of log4j
then the file is correctly readden but an exception is thrown :
<<<<<<<<
junit.framework.AssertionFailedError: Exception in constructor: 
testContextTestSequence1 (java.lang.NoClassDefFoundError: 
org/apache/log4j/Logger
at org.apache.cactus.util.log.LogService.getLog(LogService.java:178)
.....
<<<<<<<<<<<

Then I replace the log4j-core.jar by the log4j.jar from the 1.2beta2 
release and the message is the same one found with the log4j-core.jar 
delivered with cactus
<<<<<<<<<<<<<
log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable 
to a "org
.apache.log4j.Appender" variable.
log4j:ERROR Could not instantiate appender named "cactus".
log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable 
to a "org
.apache.log4j.Appender" variable.
log4j:ERROR Could not instantiate appender named "cactus".
<<<<<<<<<<<

I have also discover that if I set the appender resources to 
org.apache.log4j.Appender the message is the same

So I said "HELP"

Florent

Florent Nisseron wrote:

> 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:[EMAIL PROTECTED]]
>>>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:[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: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]>
>>
>>
>>
>
>
>------------------------------------------------------------------------
>
>
># 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 = c:\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
>
>
>------------------------------------------------------------------------
>
>
># 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 = c:\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
>
>
>------------------------------------------------------------------------
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>

Reply via email to