Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 70867 invoked from network); 5 May 2005 20:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2005 20:31:32 -0000 Received: (qmail 6799 invoked by uid 500); 5 May 2005 20:33:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 6726 invoked by uid 500); 5 May 2005 20:33:25 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 6681 invoked by uid 99); 5 May 2005 20:33:24 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_40_50,HTML_MESSAGE,RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mlybarger@gmail.com designates 64.233.170.196 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.196) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 05 May 2005 13:33:23 -0700 Received: by rproxy.gmail.com with SMTP id a36so650821rnf for ; Thu, 05 May 2005 13:30:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=Y7YUkjrKlH4iDB7IlofuphiT9QBp5Bvc2bXaWQopfLXFhfEr6jnXU0MmltuueKmyI24MoINaKrZ0ymGU4Mac1FC4iolZvnLH0l96jQN9Jl2q36q+hKS4UKNZkRszeVFHYJ4j4oQZvljXprw1kTTrOGv8Qj1vDlgscrJy8t1tr6M= Received: by 10.11.94.35 with SMTP id r35mr16329cwb; Thu, 05 May 2005 13:30:47 -0700 (PDT) Received: by 10.11.118.28 with HTTP; Thu, 5 May 2005 13:30:47 -0700 (PDT) Message-ID: Date: Thu, 5 May 2005 16:30:47 -0400 From: Mark Lybarger Reply-To: Mark Lybarger To: Ant Users List Subject: ant task to start / stop jboss Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2315_3427099.1115325047465" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_2315_3427099.1115325047465 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline does anyone have ant tasks (using java task) to start/stop jboss 4.0.0? i found the following: http://pgmjsd.buzzword.com/stories/storyReader$143 but the shutdown doesn't seem to recognise my configuration. i'm running on= =20 port 1199 (since something else is taking my port 1099 on win2k), and jboss= =20 seems to want to connect to 1099 to shutdown.=20 here's my tasks: ${deploy.configuration.dir} =20 and ant jboss.stop shows: D:\eQuoteHOWorkspace\autodeploy>ant jboss.stop Buildfile: build.xml jboss.stop: [echo] d:/tools/jboss-4.0.0/server/default/conf [java] shutdown: unused non-option argument: localhost [java] shutdown: unused non-option argument: 1198 [java] 16:30:16,518 WARN [NamingContext] Failed to connect to localhost:10 99 [java] javax.naming.CommunicationException: Failed to connect to server loc alhost:1099 [Root exception is javax.naming.ServiceUnavailableException:=20 Failed to connect to server localhost:1099 [Root exception is=20 java.net.ConnectException : Connection refused: connect]] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :212) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java: 1185) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:51 5) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:50 8) [java] at javax.naming.InitialContext.lookup(InitialContext.java:347) [java] at org.jboss.Shutdown.main(Shutdown.java:182) [java] Caused by: javax.naming.ServiceUnavailableException: Failed to conne ct to server localhost:1099 [Root exception is java.net.ConnectException:= =20 Connec tion refused: connect] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :186) [java] ... 5 more [java] Caused by: java.net.ConnectException: Connection refused: connect [java] at java.net.PlainSocketImpl.socketConnect(Native Method) [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav a: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.(Socket.java:309) [java] at java.net.Socket.(Socket.java:211) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke tFactory.java:69) [java] javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is=20 javax.naming.CommunicationE xception: Failed to connect to server localhost:1099 [Root exception is=20 javax.na ming.ServiceUnavailableException: Failed to connect to server localhost:109= 9=20 [Ro ot exception is java.net.ConnectException: Connection refused: connect]]] [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java: 1200) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:51 5) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:50 8) [java] at javax.naming.InitialContext.lookup(InitialContext.java:347) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke tFactory.java:62) [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :182) [java] ... 5 more [java] at org.jboss.Shutdown.main(Shutdown.java:182) [java] Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is=20 javax.naming.ServiceUnavailableExcepti on: Failed to connect to server localhost:1099 [Root exception is=20 java.net.Conne ctException: Connection refused: connect]] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :212) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java: 1185) [java] ... 4 more [java] Caused by: javax.naming.ServiceUnavailableException: Failed to conne ct to server localhost:1099 [Root exception is java.net.ConnectException:= =20 Connec tion refused: connect] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :186) [java] ... 5 more [java] Caused by: java.net.ConnectException: Connection refused: connect [java] at java.net.PlainSocketImpl.socketConnect(Native Method) [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav a: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.(Socket.java:309) [java] at java.net.Socket.(Socket.java:211) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke tFactory.java:69) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke tFactory.java:62) [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :182) [java] ... 5 more [java] Exception in thread "main" [java] Java Result: 1 BUILD SUCCESSFUL Total time: 3 seconds D:\eQuoteHOWorkspace\autodeploy> ------=_Part_2315_3427099.1115325047465--