wood burning stoves*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
    
    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: 12759
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to stop the SimpleHTTPServer server ?
 
Similar Threads
webservice using Eclipse Europa, for JBoss 4.0.5 GA using Java5, JAX-WS, WS-Security
Stand alone Java Process as a web server server
Axis2 and Eclipse
testing a client/server configuration
Errors when deploying a multi-port service using Transport Listener/Receiver.