dcsimg
LogConfigurationException while testing in Junit using log4j and struts
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vivek_Agrawal
Posted On:   Thursday, March 6, 2003 09:32 PM

I am getting the follwoing error while testing my strut action class in Junit testing tool and my appication is using log4j for loggine purpose any clue.. java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:530) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255) at org.apache.commons.loggi   More>>

I am getting the follwoing error while testing my strut action class in Junit testing tool and my appication is using log4j for loggine purpose
any clue..

java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:530)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:382)
at servletunit.struts.MockStrutsTestCase. (MockStrutsTestCase.java:67)
at java.lang.reflect.Method.invoke(Native Method)
at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:53)
at junit.swingui.TestRunner.runSuite(TestRunner.java:612)
at junit.swingui.TestRunner.start(TestRunner.java:739)
at junit.swingui.TestRunner.main(TestRunner.java:58)
at junit.swingui.TestRunner.run(TestRunner.java:63)

   <<Less
About | Sitemap | Contact