This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to stop the SimpleHTTPServer server ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "How to stop the SimpleHTTPServer server ?" Watch "How to stop the SimpleHTTPServer server ?" New topic
Author

How to stop the SimpleHTTPServer server ?

nandan johri
Ranch Hand

Joined: Jan 12, 2006
Posts: 75
Hi

I have created a web service and for testing purposes use org.apache.axis2.transport.http.SimpleHTTPServer server.
Could someone please tell me how could i stop the server ?

Below is the Ant script I am using for starting the server :

<target if="jars.ok" depends="make.repo" name="start.server">
<java fork="true" classname="org.apache.axis2.transport.http.SimpleHTTPServer">
<arg value="${build}/repo"/>
<classpath refid="axis2.class.path"/>
</java>
</target>
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
Assuming that you have a visible Command Prompt window for that process, select it and type <ctrl>C.

Bill
nandan johri
Ranch Hand

Joined: Jan 12, 2006
Posts: 75
Actually I dont. Can I just stop the process on this port ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
In windows I would use the Windows Task manager to locate and end the process.

Alternately, running that Ant task from a command prompt window might keep the window open.

Bill
 
GeeCON Prague 2014
 
subject: How to stop the SimpleHTTPServer server ?