Hi Vincent,

I'm configuring Cactus manaually I believe-- I'm really just trying to use as much as I had working before with teh Cactus release from April 2003. Basically I just use the <runservertests> task. Do I have to now use <cactus> task? Is aspectrt the same as aspectj jar? I place the aspectjjar every where I can imagine (it used to be I just place in $CATALINA_HOME/shared/lib co-located with cactus lib) but I always get

java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
        java.lang.Class.getDeclaredConstructors0(Native Method)
        java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
        java.lang.Class.getConstructor0(Class.java:1922)
        java.lang.Class.newInstance0(Class.java:278)
        java.lang.Class.newInstance(Class.java:261)

when I try to access by hand my address:

http://127.0.0.1:8080/gridsphere/ServletRedirector?Cactus


Thanks, Jason

Vincent Massol wrote:

Jason,

You have to tell us how you start your Cactus tests. The only reason I can
think of is that you're configuring Cactus manually instead of using the
provided front ends (<cactus> Ant task, Maven plugin, etc) and you have
forgotten to include the aspectjrt jar in your server side classpath.

-Vincent



-----Original Message-----
From: Jason Novotny [mailto:[EMAIL PROTECTED]
Sent: samedi 17 juillet 2004 13:09
To: Cactus Users List
Subject: Re: aspectj method not found


Thanks Vincent,

   I downloaded the latest AspectJ 1.2 and now I get a new stack trace

java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
        java.lang.Class.getDeclaredConstructors0(Native Method)
        java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
        java.lang.Class.getConstructor0(Class.java:1922)
        java.lang.Class.newInstance0(Class.java:278)
        java.lang.Class.newInstance(Class.java:261)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
java:117)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:1
60)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
a:793)
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
essConnection(Http11Protocol.java:702)
        org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.jav
a:571)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread
Pool.java:644)
        java.lang.Thread.run(Thread.java:552)


Maybe I should try 1.1.1? I downloaded the cactus binary for J2EE 1.3

   Thanks, Jason


Vincent Massol wrote:



Hi Jason,

Can you try using AspectJ 1.1.1 or greater? We've compiled Cactus with
AspectJ 1.1.1 which may be the reason for the problem.

Sorry about that.
-Vincent





-----Original Message-----
From: Jason Novotny [mailto:[EMAIL PROTECTED]
Sent: samedi 17 juillet 2004 12:34
To: [EMAIL PROTECTED]
Subject: aspectj method not found


Hi,

  I was updating our code to use cactus from over a year ago to cactus
1.6.1 out now. It seems mostly straightforward, however, my
runservertests hangs and I looked at the FAQ entry which was still not
too helpful. Just starting the server by hand and trying myself in the
web browser to invoke the ServletTestRedirector gave me this 500 stack
trace:

----- Root Cause -----
java.lang.NoSuchMethodError:
org.aspectj.runtime.reflect.Factory.makeSJP(Ljava/lang/String;Lorg/aspec


tj


/lang/Signature;I)Lorg/aspectj/lang/JoinPoint$StaticPart;

  I made sure to copy over aspectjrt-1.0.5.jar, cactus-1.6.1.jar over
to my Tomcat server dir as I had before..... any ideas?

  Thanks, Jason


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to