So Carlso, what understand is that we need to place the Aspect jar file in 2
places on the client and on the server side from your reply.

i placed the jar file under WEB-INF/lib folder under the EAR folder, so
where does the jar file for client goes ?

Note:- I placed cactus.properties file under classes folder

- Naveen

On 6/6/06, Carlos de Luna Saenz <[EMAIL PROTECTED]> wrote:

Remember one thing:
  Cactus has two parts running, one on the servlet container (wich is
probably the one that send the class no def error) and the other on the
"command line", in this case Eclipse IDE.
  Verify that the cactigied war (or EAR) has the jar for the class you
need.
  Greetings
  Carlso de Luna Saenz

naveen babu <[EMAIL PROTECTED]> escribió:
  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
.(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


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/

Reply via email to