File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark " Watch " New topic
Author

'port in use' error

Krishniah
Greenhorn

Joined: Nov 08, 2000
Posts: 11
Hi,
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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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"/>
</Connector>
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.
Bill
 
Consider Paul's rocket mass heater.
 
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