Stephen McConnell wrote:
Maksimenko Alexander wrote:
Hi!
I tried to run my test case wich extended AbstractMerlinTestCase.
If I put in my classpath logkit-1.2.jar then all ok. But if I don't
put it then test crashes with the following message:
My guess is that you have avalon-framework-impl as a maven dependency.
What is happening is that the logging system is attempting to create a
new logger on the assumption that the logging implementation (LogKit) is
in the classloader established for the container. However, because you
have the framework impl declared in maven's project.xml - the class
lookup for the LogKit Logger fails because LogKit isn't loaded in the
maven space.
Two solutions (one of which you have already figured out):
1. don't include avalon-framework-impl in the maven project.xml
2. or if you do, then include logkit in there as well
Cheers, Steve.
Thanks a lot!
It works!
---error report
--------------------------------------------------------------
Exception: java.lang.NoClassDefFoundError
Message: org/apache/log/Logger
---- stack trace
---------------------------------------------------------------
java.lang.NoClassDefFoundError: org/apache/log/Logger
org.apache.avalon.framework.logger.LogKitLogger.debug(LogKitLogger.java:86)
org.apache.avalon.merlin.impl.DefaultFactory.create(DefaultFactory.java:265)
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.setUp(AbstractMerlinTestCase.java:198)
junit.framework.TestCase.runBare(TestCase.java:125)
junit.framework.TestResult$1.protect(TestResult.java:106)
junit.framework.TestResult.runProtected(TestResult.java:124)
junit.framework.TestResult.run(TestResult.java:109)
junit.framework.TestCase.run(TestCase.java:118)
junit.framework.TestSuite.runTest(TestSuite.java:208)
junit.framework.TestSuite.run(TestSuite.java:203)
--------------------------------------------------------------------------------
Why isn't logkit-1.2.jar loaded from repository like all other jars
(merlin-impl-3.2.2.jar for example)?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]