ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parnell, Giles (AU - Sydney)" <g.parn...@eclipsegroup.com.au>
Subject Shutting down jboss with ant - FileNotFound Error
Date Tue, 05 Aug 2003 04:45:03 GMT
Hi Guys

I'm trying to shutdown jboss3 using ant1.5. I get a file not found error
when executing the following. I don't seem to be able to access the jobss
jmx-console either, and am wondering if this is related. It's strange as i
don't get any exceptions when starting jboss -> all services appear to start
and run normally. My app appears installed and happy (i canbrowse through
it) - except i can't hit the jmx-console

 <target name="stopjboss">
       	<if>
		 	<equals arg1="${os.name}" arg2="SunOS" />
		 <then>
		   <echo message="Sun OS" />
	   	   <exec dir="${bin}" executable="${bin}\shutdown.sh">
            	<arg line="${webhost} ${webport}"/>
	        </exec>
		 </then>
		 <else>
		   <echo message="Windows OS" />	
		   	<exec executable="cmd">
		       <arg value="/C"/>
		       <arg value="${bin}/shutdown.bat"/>
			       <arg line="${webhost} ${webport}"/>
			</exec>

		 </else>
		</if>	

I'm getting the following error :

 Sun OS
     [exec] Shutting down server http://server_IP:5320
     [exec]
http://server_IP:5320/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jbo
ss.system%3Atype%3DServer&methodName=shutdown
     [exec] Shutdown complete
     [exec] java.io.FileNotFoundException:
http://server_IP:5320/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jbo
ss.system%3Atype%3DServer&methodName=shutdown
     [exec]     at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:689)
     [exec]     at java.net.URLConnection.getContent(URLConnection.java:582)
     [exec]     at org.jboss.Shutdown.shutdown(Shutdown.java:105)
     [exec]     at org.jboss.Shutdown.main(Shutdown.java:81)

 
I realise this is a bit of a jboss issue, but am trying to eliminate the
error residing in my build script.

Cheers
Giles

"...the opportunities that are proffered by corporate websites, web
advertising and email are too great to ignore", according to the Australian
Financial Review's 2003 Marketing Survey.

Eclipse can help you use new media to engage your customers. To find out
how, please contact Jamie Verco on 9322 5181 or 0408 202 203.


Giles Parnell |    ECLIPSEGROUP   |   02 9322 5124   |   Mobile 0403 768656

Level 9, 190 George Street, Sydney, NSW 2000, Fax: 02 9322 5121

> The Eclipse Group is a wholly owned subsidiary of Deloitte Touche Tohmatsu
> 
www.eclipsegroup.com.au

This email and any files transmitted with it are confidential and intended
solely 
for the use of the individual or entity to whom they are addressed. 
If you are not the intended recipient of this email, you must not
disseminate, 
copy or otherwise use this information. If you have received this email in
error,
please notify Eclipse Group immediately.







***********Confidentiality/Limited Liability Statement***************

This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the 
intended recipient of this message, you must not disseminate, copy or 
take any action in reliance on it.  If you have received this message 
in error, please notify Deloitte Touche Tohmatsu immediately.  Any 
views expressed in this message are those of the individual sender, 
except where the sender specifically states them to be the views of 
Deloitte.

The liability of Deloitte Touche Tohmatsu, is limited by, and to the 
extent of, the Accountants' Scheme under the Professional Standards 
Act 1994 (NSW).

The sender cannot guarantee that this email or any attachment to it 
is free of computer viruses or other conditions which may damage or
interfere with data, hardware or software with which it might be used.
It is sent on the strict condition that the user carries out and relies
on its own procedures for ensuring that its use will not interfere with
the recipients systems and the recipient assumes all risk of use and
absolves the sender of all responsibility for any consequence of its use.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message