Craig wrote:

Hey Tomcat Users!

I am having  a very desperate problem with Tomcat.  I have a demonstration
due later today, and the script I have been using to run tomcat (5.0.27)
on ports 80/443 doesn't seem to do the job -- though it had been
workingfor weeks up until a restart earlier today.  I'm getting these
kinds of errors in catalina.out when I try to start it on port 80/443:

Apr 26, 2005 1:23:55 AM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException

...

Apr 26, 2005 1:24:04 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80

I don't have anything running on ports 80 or 443, as a netstat -ltun
shows:



Then you're running TC as an unprivileged user (tomcat4 or tomcat5) and only superuser can bind to ports < 1024. Or, as a long shot, maybe you've enabled security, but TC should be able to bind to 80/443 with default security setup.


Anyway, I suspect it is the unprivileged user issue. It can be resolved in three ways.

1. Run TC behind Apache, which would run on ports 80/443 and TC would be connected via mod_jk (or mod_jk2, if you're sentimental/more adapt to it)

2. Run TC as "root", since it is a demonstration, that additional risk is not going to kill you, but it is definitely not for production.

3. Run TC via Jakarta-Commons Daemon and it's JSVC

Solution No2 is the fastest, try it out and if it works, you can calm down and play with the other two.

Nix.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to