Close
jGuru Forums
Posted By: Phil_Cogenson Posted On: Sunday, July 31, 2005 01:56 PM
When tried to execute a unit test case, got this error. Did anybody have faced this before. Any ideas on this.
WebGroup E SRVE0026E: [Servlet Error]-[Error while defining class: insurance.pros.drn.test.DelegateTest This error indicates that the class: junit.framework.TestCase could not be located while defining the class: insurance.pros.drn.test.DelegateTest This is often caused by having the class at a higher point in the classloader hierarchy Dumping the current context classloader hierarchy: ==> indicates defining classloader *** indicates classloader where the missing class could have been found ***[0] com.ibm.ws.classloader.CompoundClassLoader@6ea4fbe6 .................. Delegation Mode: PARENT_FIRST ............................. ---Original exception--- java.lang.NoClassDefFoundError: junit/framework/TestCase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:446) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) ...................... --- end Original exception----
Re: java.lang.NoClassDefFoundError: junit/framework/TestCase
Posted By: Stephen_Smith Posted On: Wednesday, August 10, 2005 08:36 AM