|
Hi
Vincent,
thanks
! That explains it.
But do
you have any idea about the errors I still get when I run the sample
tests, with only our log4j, and not with the one coming with
Cactus, like so:
[junit] Running
org.apache.cactus.sample.TestSampleServlet
[junit] Tests run: 12, Failures: 0, Errors: 12, Time elapsed: 0.297 sec [junit] Testsuite: org.apache.cactus.sample.TestSampleServlet [junit] Tests run: 12, Failures: 0, Errors: 12, Time elapsed: 0.297 sec [junit] [junit] Testcase: testGetMethod took 0.265 sec [junit] Caused an ERROR [junit] org/apache/log4j/Logger [junit] java.lang.NoClassDefFoundError: org/apache/log4j/Logger [junit] at org.apache.cactus.util.log.LogService.getLog(LogService.java:173) [junit] at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:366) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java, Compiled Code) [junit] [junit] Testcase: testPostMethod took 0 sec [junit] Caused an ERROR [junit] org.apache.log4j.Category: method getInstance(Ljava/lang/String;)Lorg/apache/log4j/Logger; not found [junit] java.lang.NoSuchMethodError: org.apache.log4j.Category: method getInstance(Ljava/lang/String;)Lorg/apache/log4j/Logg ; not found [junit] at org.apache.cactus.util.log.BaseLog.<init>(BaseLog.java:83) [junit] at org.apache.cactus.util.log.LogService.getLog(LogService.java:178) [junit] at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:366) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java, Compiled Code) [junit] Thank
you,
Heikki
|
Title:
- Log4j gump Heikki Doeleman
- Re: Log4j gump Vincent Massol
- Re: Log4j gump Heikki Doeleman
- Re: Log4j gump Vincent Massol
