Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat owner can't Run Tomcat Server

Status
Not open for further replies.

taneujin

MIS
Aug 14, 2001
61
SG
Hi, I unzipped a tomcat server into /tomcat. I was able to start the server in root. But after I changed the owner to tomcat (user already created) I was not able to start the server (environment same as root)

The message came out with an IOExceptino error saying that unable to assign port 80:permission denied. Port 80 and apache was not in use/running.

Please advise.
 
It sounds to me like an error binding to port 80.

Only root can bind a daemon to a privileged port (all ports below 1024).

I've found several documents that say explicitly that Tomcat as to run as root to use a privileged port. The way to get around this is to integrate Tomcat with a web server.

You could, of course, reconfigure tomcat to use a non-privileged port. Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top