unable to start the Tomcat 4.0 server

Hi,

I am unable to start the Tomcat 4.0 server running on Linux 7.3 machine, I checked the catalina.out file and it is displaying the following error

org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: 80

what could be the problem and how to solve it.

Help me please
nagulasAsked:
Who is Participating?
 
ramazanyichConnect With a Mentor Commented:
There is another webserver running on port 80.
I propose run tomcat on another port.
Search in config file of tomcat for word port="80" and replace it by another port number (eg., 8080).
Then start tomcat and access it using port number:
http://servername:8080/
0
 
anhttCommented:
It seems you already had another webserver (like IIS or something else) serving at port 80.
If you still want your Tomcat to server at port 80 (default HTTP port), just turn IIS off. In case of IIS, click Start->Run->net stop iisadmin.
If you dont want to stop IIS, or can't, you must choose another port for Tomcat (for example 8080). Open {Your-Tomcat-folder}/conf/server.xml, search for the following

    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"

               port="80"

               minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

Replace the option

port="80"

to

port="8080" <!-- or any port you want, as long as it is not reserved -->

Restart tomcat. You can now have it served at the port.
Go to http://localhost:8080/index.jsp
or http://localhost/index.jsp (if the port is 80)

Good luck!
0
All Courses

From novice to tech pro — start learning today.