This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12759
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.
It is sorta covered in the JavaRanch Style Guide.
subject: 'port in use' error
Similar Threads
How to setup the same application (multiple instances) running on different ports under Tomcat 6.0.x
Servers In Netbeans or Eclipse
NX: Basic shutting down ports
Two tomcat windows on clicking startup.bat
Multiple Instance of JBoss