I am running a test installation of JBoss 4.0.2 on Windows 2000 (SP4) with Sun JDK 1.4.2_07. I have set up two instances of JBoss (slightly modified 'all' server config) using the binding manager (one is running as 'ports-default', the other is running as 'ports-01'). I can start them up just fine, but am having problems with shutdown.
If I run 'shutdown -S' from the command line, it will shutdown the 'ports-default' instance without issue. If, however, I want to shut down either instance by referring to it using the JNDI URL, it will just hang (no exceptions or errors). I have tried to shut down both instances with the following command: 'shutdown -s jnp://localhost:1098 -S' (ports-default) or 'shutdown -s jnp://localhost:1198 -S' (ports-01). Both versions will hang (ctrl-c will kill the batch process). If I stop the two servers and try the above commands, then it throws like this: Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1098 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1098 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1098 [Root exception is java.net.ConnectException: Connection refused: connect]]] It just looks like it is finding the server at the specified port (when running), but is hanging. It is failing (correctly) when the server is stopped. Any ideas? Am I not using the -s option to shutdown correctly? Are there other options I need to specify? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878541#3878541 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878541 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
