jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: aspectj method not found
Date Mon, 19 Jul 2004 15:34:35 GMT
Hi Jason,

> -----Original Message-----
> From: Jason Novotny [mailto:novotny@aei.mpg.de]
> Sent: lundi 19 juillet 2004 17:11
> To: Cactus Users List
> Subject: Re: aspectj method not found
> 
> 
> Hi,
> 
>     I decided to go back to using cactus-framework-20030401.jar for the
> simple reason that (a) it worked and (b) using the cactus task requires
> a WAR file-- since my webapp requires libs in the shared/lib dir of my
> container, there is not much use for a WAR of my webapp.

A pity you do not wish to upgrade (the new version has all the best
features!). 

>     However, even though my tests run successfully, I see the following
> exception thrown after succesfully doing the stop-tomcat task.
> stop-tomcat works fine but then I get this:
> 

[snip]

Seeing the "Caused by: java.lang.IllegalStateException: Shutdown in
progress" from the stack trace, it does not seem it's a problem at all.
Here's my guess: Cactus pings a URL to test if the server is really down or
not. It seems that this ping was happening during the shutdown, hence the
message. It's normal.

Thanks
-Vincent

> 
> BUILD SUCCESSFUL
> Total time: 1 minute 50 seconds
> 
> 
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessD
> estroyer.java:116)
>         at
> org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.jav
> a:186)
>         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
>         at org.apache.tools.ant.taskdefs.Java.fork(Java.java:702)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:161)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:301)
>         at org.apache.tools.ant.Target.performTasks(Target.java:328)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
>         at
> org.apache.cactus.integration.ant.StartServerHelper.run(StartServerHelper.
> java:309)
>         at java.lang.Thread.run(Thread.java:552)
> Caused by: java.lang.IllegalStateException: Shutdown in progress
>         at java.lang.Shutdown.remove(Shutdown.java:102)
>         at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
>         ... 19 more
>      [java] Java Result: -113
> 
> 
> and I'm using ant-1.6.1.
> 
>     Thanks, Jason
> 
> Vincent Massol wrote:
> 
> >Hi Jason,
> >
> >
> >
> >>-----Original Message-----
> >>From: Jason Novotny [mailto:novotny@aei.mpg.de]
> >>Sent: lundi 19 juillet 2004 12:18
> >>To: Cactus Users List
> >>Subject: Re: aspectj method not found
> >>
> >>
> >>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.
> >>
> >>
> >
> >Yes, that's "manually" as the runservertests won't do anything for you
> WRT
> >configuring Cactus.
> >
> >
> >
> >>Do I have to
> >>now use <cactus> task?
> >>
> >>
> >
> >It's highly recommended as it's much simpler to use than the old
> >runservertests task. If you do this then you won't have the Aspectj
> >classpath pb.
> >
> >
> >
> >>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)
> >>
> >>
> >
> >This is the aspectjrt jar. In AspectJ (recent releases), there are 2
> aspectj
> >jars only:
> >- aspectj tools jar
> >- aspectj rt jar
> >
> >You only need the aspectj rt one in your CP (both client and server).
> >
> >-Vincent
> >
> >
> >
> >>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:novotny@aei.mpg.de]
> >>>>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:novotny@aei.mpg.de]
> >>>>>>Sent: samedi 17 juillet 2004 12:34
> >>>>>>To: cactus-user@jakarta.apache.org
> >>>>>>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/a
> sp
> >>>>>>
> >>>>>>
> >>ec
> >>
> >>
> >>>>>>
> >>>>>>
> >>>>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: cactus-user-unsubscribe@jakarta.apache.org
> >>>>>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >>>>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message