You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@pivolis.com> on 2004/01/08 09:55:07 UTC

RE: IllegalStateException/InvocationTargetException AFTER cactus runs, when using Ant 1.6.0

Hi Daniel,

Yeah there might be breaking changes in Ant 1.6 that breaks what we are
doing. AFAIK, you're the first one to try Cactus with Ant 1.6. If anyone
can submit a patch, I'll gladly apply it.

I know Chris wanted to play with it. Chris, have you had the chance to
try Ant 1.6 yet?

Thanks
-Vincent

> -----Original Message-----
> From: Daniel Rabe [mailto:drabe@opentext.com]
> Sent: 07 January 2004 20:21
> To: Cactus Users List
> Subject: IllegalStateException/InvocationTargetException AFTER cactus
> runs, when using Ant 1.6.0
> 
> I was running my Cactus tests successfully with Ant 1.5.3-1 (against
> Tomcat
> 5.0.16, on Windows XP). Today I decided to upgrade to Ant 1.6.0. The
> Cactus
> tests still run successfully, but AFTER they complete and I get "BUILD
> SUCCESSFUL", I get the following:
> 
> BUILD SUCCESSFUL
> Total time: 1 minute 20 seconds
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39
> )
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
>
org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(Proces
sD
> es
> troyer.java:153)
>         at
>
org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.j
av
> a:
> 223)
>         at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:526)
>         at org.apache.tools.ant.taskdefs.Java.fork(Java.java:740)
>         at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:199)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:115)
>         at
>
org.apache.cactus.integration.ant.container.tomcat.AbstractCatalinaConta
in
> er
> .invokeBootstrap(AbstractCatalinaContainer.java:214)
>         at
>
org.apache.cactus.integration.ant.container.tomcat.Tomcat5xContainer.sta
rt
> Up
> (Tomcat5xContainer.java:98)
>         at
>
org.apache.cactus.integration.ant.container.ContainerRunner$1.run(Contai
ne
> rR
> unner.java:179)
>         at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.IllegalStateException: Shutdown in progress
>         at java.lang.Shutdown.remove(Shutdown.java:102)
>         at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
>         ... 14 more
>    [cactus] Java Result: 1
> 
> Any ideas??
> 
> Thanks,
> Daniel Rabe



Automated Jar download with Ant (was RE: IllegalStateException/InvocationTargetException AFTER cactus runs, when using Ant 1.6.0)

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Christopher Lenz [mailto:cmlenz@gmx.de]
> Sent: 09 January 2004 13:12
> To: Cactus Users List
> Subject: Re: IllegalStateException/InvocationTargetException AFTER
cactus
> runs, when using Ant 1.6.0

[snip]

> BTW, I've created a Ant 1.6 script for Cactus that downloads all
> required JARs (except j2ee.jar, clover and the eclipse stuff, of
> course) from www.ibiblio.org/maven and puts them into user-defined
> locations, defaulting to the maven repository style setup in
> build.properties. Any interest in seeing that script added to CVS?

Sure, that looks cool!

Thanks
-Vincent


Re: IllegalStateException/InvocationTargetException AFTER cactus runs, when using Ant 1.6.0

Posted by Christopher Lenz <cm...@gmx.de>.
Am 08.01.2004 um 09:55 schrieb Vincent Massol:
> Yeah there might be breaking changes in Ant 1.6 that breaks what we are
> doing. AFAIK, you're the first one to try Cactus with Ant 1.6. If 
> anyone
> can submit a patch, I'll gladly apply it.
>
> I know Chris wanted to play with it. Chris, have you had the chance to
> try Ant 1.6 yet?

Yup, Ant 1.6 is my new $ANT_HOME :-)

There have been a couple of problems with 1.6.0 and 1.6.1 is expected 
soon. However, none of those problems have affected me (yet), and I've 
also been been using Ant 1.6 to build projects using Cactus.

To be sure, I've just run an entire release build of Cactus CVS HEAD 
against Ant 1.6.0 and Tomcat 4.1 (and on MacOS X Panther ;-) ). BUILD 
SUCCESSFUL and no exception after that.

So I have no idea what's wrong. I'll try on WinXP against Tomcat 5 in a 
minute.

  ---

BTW, I've created a Ant 1.6 script for Cactus that downloads all 
required JARs (except j2ee.jar, clover and the eclipse stuff, of 
course) from www.ibiblio.org/maven and puts them into user-defined 
locations, defaulting to the maven repository style setup in 
build.properties. Any interest in seeing that script added to CVS?

--
Christopher Lenz
/=/ cmlenz at gmx.de