Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stop the SimpleHTTPServer server ?

 
nandan johri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that you have a visible Command Prompt window for that process, select it and type <ctrl>C.

Bill
 
nandan johri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I dont. Can I just stop the process on this port ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic