Re: ServletRedirector: java.lang.NoClassDefFoundError: org.aspectj.lang.Signature
"naveen babu" <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
my search in the google has always asked above question. Yes, i did added Aspectj jar file in the lib folder I also did search in the mail archive of cactus user list. Here is one link, who had the same problem and couldn't resolve, while in the replies somebody suggested to use front ends ( <cactus> Ant task, Maven plugin, etc) instead of configuring Cactus manually, which i didn't get it completely. I think he means to use ANT task instead of Eclipse IDE to run the tests http://www.mail-archive.com/[email protected]/msg05608.html I searched Apache website too about this problem and here is one link http://jakarta.apache.org/cactus/integration/eclipse/index.html which also i didn't get it completely, does it implies you cann't run tests using Eclipse IDE ( since there is a bug ) - Naveen On 6/6/06, Kenney Westerhof <[email protected]> wrote: > > On Tue, 6 Jun 2006, naveen babu wrote: > > Are you sure you have an aspectj jar in the WEB-INF/lib dir of the war? > > -- kenney > > > I am running Cactus from Eclipse IDE. I am new to Cactus > > > > i do have all the jar files in the classpath > > > > but when i run the test case from Eclipse, it throws the following error > in > > the log file > > > > [Servlet Error]-[ServletRedirector]: Failed to load servlet: > > java.lang.NoClassDefFoundError: org.aspectj.lang.Signature > > at java.lang.Class.verifyImpl(Native Method) > > at java.lang.Class.verify(Class.java:241) > > at java.lang.Class.initialize(Class.java:304) > > at java.lang.Class.newInstanceImpl(Native Method) > > at java.lang.Class.newInstance(Class.java:1545) > > at java.beans.Beans.instantiate(Beans.java:219) > > at java.beans.Beans.instantiate(Beans.java:63) > > at > com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet( > > WebAppServletManager.java:188) > > at > > com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference( > > WebAppServletManager.java:455) > > at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference( > > WebApp.java:726) > > at > > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo > ( > > WebAppRequestDispatcherInfo.java:197) > > at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo > > .<init>(WebAppRequestDispatcherInfo.java:68) > > at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher( > > WebApp.java:1564) > > at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher( > > WebApp.java:1523) > > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook( > > WebAppInvoker.java:290) > > at > > > com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation > ( > > CachedInvocation.java:71) > > at > com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI > > (ServletRequestProcessor.java:246) > > at > com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service > > (OSEListener.java:334) > > at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest( > > HttpConnection.java:56) > > at com.ibm.ws.http.HttpConnection.readAndHandleRequest( > > HttpConnection.java:652) > > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448) > > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936) > > > > > > and the following error trace in the Eclipse IDE > > > > org.apache.cactus.util.ChainedRuntimeException: Failed to get the test > > results. This is probably due to an error that happened on the server > side > > when trying to execute the tests. Here is what was returned by the > server : > > [Error 500: Failed to load target servlet [ServletRedirector] > > ] > > at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest( > > LogAspect.aj(1k):120) > > at org.apache.cactus.client.AbstractHttpClient.around2_doTest( > > LogAspect.aj(1k):1236) > > at org.apache.cactus.client.AbstractHttpClient.doTest(LogAspect.aj > > (1k):104) > > at org.apache.cactus.AbstractWebTestCase.runGenericTest( > > AbstractWebTestCase.java:260) > > at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java > :133) > > at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java > :195) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( > > RemoteTestRunner.java:421) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( > > RemoteTestRunner.java:305) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( > > RemoteTestRunner.java:186) > > org.apache.cactus.client.ParsingException: Not a valid response > > at org.apache.cactus.client.WebTestResultParser.readRootElement( > > LogAspect.aj(1k):140) > > at org.apache.cactus.client.WebTestResultParser.dispatch29_parse( > > LogAspect.aj(1k):101) > > at org.apache.cactus.client.WebTestResultParser.around29_parse( > > LogAspect.aj(1k):1236) > > at org.apache.cactus.client.WebTestResultParser.parse(LogAspect.aj > > (1k):96) > > at org.apache.cactus.client.AbstractHttpClient.callGetResult( > > LogAspect.aj(1k):230) > > at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest( > > LogAspect.aj(1k):114) > > at org.apache.cactus.client.AbstractHttpClient.around2_doTest( > > LogAspect.aj(1k):1236) > > at org.apache.cactus.client.AbstractHttpClient.doTest(LogAspect.aj > > (1k):104) > > at org.apache.cactus.AbstractWebTestCase.runGenericTest( > > AbstractWebTestCase.java:260) > > at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java > :133) > > at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java > :195) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( > > RemoteTestRunner.java:421) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( > > RemoteTestRunner.java:305) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( > > RemoteTestRunner.java:186) > > > > Any help would be appreciated > > > > -- > Kenney Westerhof > http://www.neonics.com > GPG public key: http://www.gods.nl/~forge/kenneyw.key > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >