Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » JUnit + M6 and wtp4.0 doesn't work together.
JUnit + M6 and wtp4.0 doesn't work together. [message #104760] Tue, 17 May 2005 15:45
Eclipse UserFriend
Hi Newsgroup,
I have got a big problem, after switching to the new service release I got
more problems, than I gained of some new features. The flexible project
structure is headache-inducing. But what's bothering me most, is that my
unit-test are not working anymore. I can't figure out why. To provide some
information before I got a NoClassDefinitionFound error. I added the
commons-logging, but the problem just changed to that what it is now.
Allthough I removed the .jar from my lib-folder and also of course from my
classpath, I couldn't make this error go away. Perhaps anyone of you
suffered the same issue.
Otherwise here is my stacktrace:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.))

at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(L ogFactoryImpl.java:543)

at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(L ogFactoryImpl.java:235)

at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(L ogFactoryImpl.java:209)

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

at
org.springframework.context.support.AbstractApplicationConte xt. <init>(AbstractApplicationContext.java:127)

at
org.springframework.context.support.AbstractApplicationConte xt. <init>(AbstractApplicationContext.java:159)

at
org.springframework.context.support.AbstractRefreshableAppli cationContext. <init>(AbstractRefreshableApplicationContext.java:66)

at
org.springframework.context.support.AbstractXmlApplicationCo ntext. <init>(AbstractXmlApplicationContext.java:48)

at
org.springframework.context.support.FileSystemXmlApplication Context. <init>(FileSystemXmlApplicationContext.java:79)

at
org.springframework.context.support.FileSystemXmlApplication Context. <init>(FileSystemXmlApplicationContext.java:67)

at itecon.dao.hibernate.test.BaseDAOTestCase.<init>(BaseDAOTestCase.java:28)

at
itecon.dao.hibernate.test.SparepartDAOTest.<init>(SparepartDAOTest.java:20)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)

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

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

at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)

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

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

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

at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:103)

at junit.awtui.TestRunner.runSuite(TestRunner.java:455)

at junit.awtui.TestRunner.start(TestRunner.java:536)

at junit.awtui.TestRunner.main(TestRunner.java:382)

at junit.awtui.TestRunner.run(TestRunner.java:387)

at itecon.dao.hibernate.test.SparepartDAOTest.main(SparepartDAO Test.java:36)

Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)

at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstru ctor(LogFactoryImpl.java:397)

at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(L ogFactoryImpl.java:529)

.... 24 more

Caused by: org.apache.commons.logging.LogConfigurationException: Invalid
class loader hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.

at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstru ctor(LogFactoryImpl.java:385)

.... 25 more



Perhaps anyone can help.

Thanks a lot anyway

Regards Johannes
Previous Topic:Starting Tomcat Error
Next Topic:Debug Web Services Code
Goto Forum:
  


Current Time: Tue Jul 22 06:38:50 EDT 2025

Powered by FUDForum. Page generated in 0.02989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top