File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes 'port in use' error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark " Watch " New topic

'port in use' error


Joined: Nov 08, 2000
Posts: 11
I was using Java web server and to run servlets, and then installed apache tomcat to learn JSP. Now I cant run either one of them. Cos when I run either one of them it is giving me the error message saying the ports are use by other application.
So how do I set up the ports or change the ports so that both can work, without problem.
Please help
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12809
Tomcat listens on a port determined in the server.xml file - the entry that looks like:
<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
<Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port" value="8080"/>
Why do you want to continue with JWS? Tomcat contains a complete server, servlet engine and JSP engine. You may get weird errors if the two programs get their libraries mixed up.
I agree. Here's the link:
subject: 'port in use' error