you need to remove the TestCactus.jar from the EAR, so that the test classes only appear in the web-app. Otherwise the test classes are loaded from a class-loader one level above the class-loader that loads cactus.jar, thus resulting in the NCDFE you're getting.
Hope that helps, Chris -- Christopher Lenz /=/ cmlenz at gmx.de
Am 05.12.2003 um 02:18 schrieb Srikrishna Kalavacharla:
Hi All,
I've tried my best to read through the mailing lists and implement all the suggestions, but still I'm getting the same error.
My Error is
(java.lang.NoClassDefFoundError
at org.apache.cactus.ServletTestCase.init(ServletTestCase.java:188)
at org.apache.cactus.ServletTestCase.<init>(ServletTestCase.java:164) ...
I'm using the eclipse integration from the nightly build area and the plugin is
C:\eclipse\plugins\org.apache.cactus.eclipse.runner_1.6dev-20031029. I'm using JBoss as my application server.
My EAR file has got the following Structure
TestCactus.ear application.xml TestCactus.jar com cactus TestCactusHome.class TestCactusBean.class TestCactus.class META-INF jboss.xml ejb-jar.xml TestCactus.war WEB-INF jboss-web.xml web.xml lib log4j-1.2.8.jar junit-3.8.1.jar commons-logging-1.0.1.jar cactus-1.6dev-20031029.jar aspectjrt-1.1.1.jar classes com cactus TestCactusHome.class TestCactusBean.class TestCactus.class TestCactusTest.class
In the client side I've the following jar files
junit-3.8.1.jar cactus-ant-1.6dev-20031029.jar commons-httpclient-2.0-rc2.jar aspectjrt-1.1.1.jar commons-logging-1.0.3.jar httpunit-1.5.3.jar cactus-1.6dev-20031029.jar
I've the mappings for ServletRedirector and ServletTestRunner in my web.xml. When I try the ServletRedirector page it shows me the blank page and I assume there are no errors in the process. However when I use the ServletTestRunner and call the com.cactus.TestCactusTest class it throws me a class not found error.
Please let me know where I'm doing wrong.
Thanks Srikrishna
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
