Hello,


My MyRunnerClass.class:

public class MyRunnerClass extends ServletTestCase {


public MyRunnerClass(String s) {
super(s);
}

public static void main(String[] args) {
junit.swingui.TestRunner.main(new String[] {"MyRunnerClass"});
}


public void testRequest() {
if (request == null) {
fail("Request is null");
}
}
}




i run it as JUnit in IntelliJ IDEA and when i do that, JUnit UI window shows me an 
exception:


warning(junit.framework.TestSuite$1): Exception in constructor: testRequest
(org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Jdk14Logger does
not implement Log

at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)

at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)

at org.apache.cactus.internal.client.ClientTestCaseDelegate.around72_setDelegatedTest
(ClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1143)

at org.apache.cactus.internal.client.ClientTestCaseDelegate.setDelegatedTest
(ClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:173)

at org.apache.cactus.internal.client.ClientTestCaseDelegate.<init>
(ClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:157)

at org.apache.cactus.internal.client.WebClientTestCaseDelegate.<init>
(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:95)

at org.apache.cactus.ServletTestCase.init(ServletTestCase.java:175)

at org.apache.cactus.ServletTestCase.<init>(ServletTestCase.java:151)

at MyRunnerClass.<init>(MyRunnerClass.java:25)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at junit.framework.TestSuite.createTest(TestSuite.java:135)

at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)

at junit.framework.TestSuite.<init>(TestSuite.java:75)

at com.intellij.rt.execution.junit.TestRunnerUtil.getTestImpl(TestRunnerUtil.java:111)

at com.intellij.rt.execution.junit.ui.SwingTestRunner.getTest(SwingTestRunner.java:19)

at junit.swingui.TestRunner.runSuite(TestRunner.java:591)

at junit.swingui.TestRunner.start(TestRunner.java:708)

at com.intellij.rt.execution.junit.ui.SwingTestRunner.main(SwingTestRunner.java:11)

Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log

at 
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)

at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)

... 22 more

Caused by: org.apache.commons.logging.LogConfigurationException:
Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log

at 
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)

... 23 more

)





Where is the problem? I'm using Cactus 1.5 beta 1 for J2EE 1.3 and JUnit 3.8.1. 

Thanks,
 Algirdas M.


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

Reply via email to