You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Abhishek Khandelwal <ak...@spikesource.com> on 2004/05/21 19:17:22 UTC

Another problem with struts and cactus

Hi,

I am building struts1.2 from CVS_HEAD.
I was able to build struts properly by ant dist.

When I try to run ant test.tomcat.all
All the tests are running properly and finally when the test.tomcat.50
target call the stop.tomcat.50 target, I guess the target hangs. It
never returns. Probably some problem in stopping the tomcat server.

Does anyone has any idea or know the work around for stopping tomcat,
wtihout it getting hang.
Seeing mails from last couple of days, looks like validator problem. But
still I am confused how validator is interfering with shutting down
tomcat.

Although it shows me that build was successful.

After I kill the hanged process, It shows me
java.reflect.InvocationTargetException.

Here is the dump of error I am getting::

_______________________________________________________________________


stop.tomcat.50:
     [java] Catalina.stop: java.net.ConnectException: Connection refused
     [java] java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
     [java]     at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
     [java]     at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
     [java]     at java.net.Socket.connect(Socket.java:452)
     [java]     at java.net.Socket.connect(Socket.java:402)
     [java]     at java.net.Socket.<init>(Socket.java:309)
     [java]     at java.net.Socket.<init>(Socket.java:124)
     [java]     at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:449)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
     [java]     at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:322)
     [java]     at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:400)
 
 
     [java] Java Result: 1
[runservertests] Server stopped !
 
test.tomcat.all:
 
BUILD SUCCESSFUL
Total time: 10 minutes 28 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(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:116)
        at
org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java: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.ant.StartServerHelper.run(Unknown Source)
        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)
        ... 19 more
     [java] Java Result: -126


_______________________________________________________________________



Thanks
Abhishek


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org