Hi,

Can you please post to the Cactus mailing list (and not to me directly).
But before doing that please read the FAQ :
http://jakarta.apache.org/cactus/faq.html#faq8

You should find your answer there.

Cheers,
-Vincent

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 29 August 2002 16:39
To: [EMAIL PROTECTED]
Subject: CACTUS

Dear Mr. Massol
�
I try to test a servlet with cactus.
When i run the test with junit.swingui.testRunner i got the following
message:
�
junit.framework.AssertionFailedError: Exception in constructor:
testReadServletOutputStream
(org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException:
org.apache.commons.logging.impl.LogFactoryImpl
�
�at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:506)
�
�at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
�
�at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
�
�at
org.apache.cactus.util.JUnitVersionHelper.around146_getTestCaseName(JUni
tVersionHelper.java;org/apache/cactus/util/log/LogAspect.java(1k):1170)
�
�at
org.apache.cactus.util.JUnitVersionHelper.getTestCaseName(JUnitVersionHe
lper.java;org/apache/cactus/util/log/LogAspect.java(1k):103)
�
�at org.apache.cactus.AbstractTestCase.<init>(AbstractTestCase.java:124)
�
�at
org.apache.cactus.AbstractWebTestCase.<init>(AbstractWebTestCase.java:86
)
�
�at org.apache.cactus.ServletTestCase.<init>(ServletTestCase.java:119)
�
�at servlet.TestSampleServlet.<init>(TestSampleServlet.java:84)
�
�at java.lang.reflect.Constructor.newInstance(Native Method)
�
�at servlet.TestSampleServlet.suite(TestSampleServlet.java:105)
�
�at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:53)
�
)
�
I don't know what kind of problem cause this error.
I hope you can help me!
�
here is my cactus.properties:
�
cactus.contextURL = http://localhost:80/bars
cactus.contextURL.port = 80
cactus.servletRedirectorName = ServletRedirector
�
and my log4j.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 = 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
�
Thanks
Armin Harrasser


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to