RE: How to set tomcat to use port 80...

2002-09-08 Thread Xiaoyu Zhang


> Could it be that there is something else also running on port 80
> that you aren't aware of. I 'think' I had that problem at work
> when some other program was using port 80.. I'm not certain that
> was the error had, but just thought I'd throw out the possibility.
>

Check the catalina.out under $CATALINA_HOME/logs directory. If the port is
used, catalina.out will tell you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to set tomcat to use port 80...

2002-09-08 Thread Ignacio Cárdenas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!


> enough to comment per se ... but someone mentioned in a prior conversation
> that in order for Tomcat to run on any port < 1024 it must run as root.  I

Is correct... you need root permisions tu run Tomcat, or any other 
application, if it use any port < 1024.

Regards,
Ignacio.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9eyjMkC21d1l2YQURAhQXAKC3upJmQlRpMzAFS1vh8fUDiJc95wCferIa
ACNHbzIX4RGjZLb6n+Wm3SM=
=+LY3
-END PGP SIGNATURE-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to set tomcat to use port 80...

2002-09-08 Thread Gerald Henriksen

On Sun, 8 Sep 2002 12:12:50 -0400 , you wrote:

>Reason number #1 I don't like RPMs...you never know for sure what they are
>doing.

In this case it is all documented in the release notes

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to set tomcat to use port 80...

2002-09-08 Thread Turner, John


Reason number #1 I don't like RPMs...you never know for sure what they are
doing.

John


-Original Message-
From: Keith Pemberton
To: Turner, John
Cc: [EMAIL PROTECTED]
Sent: 9/8/02 12:07 AM
Subject: RE: How to set tomcat to use port 80...

"tomcat4 run" is a script file that I can run to start and stop tomcat4
because I installed an rpm version on tomcat.  I found the solution and
thanks for everyone that was trying to help me out.  Turns out that the
tomcat4.conf file has a line TOMCAT_USER which was assigned to tomcat4.
When I installed the rpm version it created a tomcat4 user and group.
Eventhough I was logged in as root and trying to run "tomcat4 run" it
was using the user specified as TOMCAT_USER in the conf file as the user
to start the server.  That is why it kept giving me permission denied
errors.  A simple change in that conf file to read "root" as opposed to
"tomcat4" quickly fixed the problem.  Again, thanks so much for the help
everyone... I'm sure that I will have more questions later 

Keith 

On Sat, 2002-09-07 at 22:56, Turner, John wrote: 

 What is "tomcat4 run"?  What happens if you run

"$CATALINA_HOME/bin/startup.sh" as root?  Do you get the same error
message?

Whatever "tomcat4" is, it might be doing some sort of su or
setuid/setgid

before actually trying to start Tomcat.



John



-Original Message-

From: Keith Pemberton

To: [EMAIL PROTECTED]

Sent: 9/7/02 11:19 PM

Subject: How to set tomcat to use port 80...



Ok, so I want tomcat to use port 80 so that I don't have to type in

http://url:8080 all the time and can just accesses it with the straight

url.  I have changed the server.xml file to read port 80 in replace of

the 8080 that was there originally under the HttpConnector.  Is there

anything else that needs to be done for tomcat to use port 80?  I keep

getting Permission Denied messages when I type "tomcat4 run" as the root

user.  That command does work, though, if I change the port back to

8080.  Any insights would be much appreciated!  Thanks!



Keith






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




RE: How to set tomcat to use port 80...

2002-09-07 Thread Keith Pemberton

"tomcat4 run" is a script file that I can run to start and stop tomcat4
because I installed an rpm version on tomcat.  I found the solution and
thanks for everyone that was trying to help me out.  Turns out that the
tomcat4.conf file has a line TOMCAT_USER which was assigned to tomcat4. 
When I installed the rpm version it created a tomcat4 user and group. 
Eventhough I was logged in as root and trying to run "tomcat4 run" it
was using the user specified as TOMCAT_USER in the conf file as the user
to start the server.  That is why it kept giving me permission denied
errors.  A simple change in that conf file to read "root" as opposed to
"tomcat4" quickly fixed the problem.  Again, thanks so much for the help
everyone... I'm sure that I will have more questions later

Keith

On Sat, 2002-09-07 at 22:56, Turner, John wrote:

 What is "tomcat4 run"?  What happens if you run
"$CATALINA_HOME/bin/startup.sh" as root?  Do you get the same error message?
Whatever "tomcat4" is, it might be doing some sort of su or setuid/setgid
before actually trying to start Tomcat.

John

-Original Message-
From: Keith Pemberton
    To: [EMAIL PROTECTED]
Sent: 9/7/02 11:19 PM
Subject: How to set tomcat to use port 80...

Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type "tomcat4 run" as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith






Re: How to set tomcat to use port 80...

2002-09-07 Thread Rick Reumann

On Saturday, September 7, 2002, 11:19:41 PM, Keith Pemberton wrote:

KP>   I keep getting Permission Denied messages
KP> when I type "tomcat4 run" as the root user.  That command does
KP> work, though, if I change the port back to 8080.  Any insights
KP> would be much appreciated!  Thanks!

Could it be that there is something else also running on port 80
that you aren't aware of. I 'think' I had that problem at work
when some other program was using port 80.. I'm not certain that
was the error had, but just thought I'd throw out the possibility.

--

Rick

mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to set tomcat to use port 80...

2002-09-07 Thread neal

That's all I did ... change the port from 8080 to 80 and that worked for me
on both Windows and Linux.  As to the permissions issue I don't really know
enough to comment per se ... but someone mentioned in a prior conversation
that in order for Tomcat to run on any port < 1024 it must run as root.  I
don't know exactly how this may speak to your problem but perhaps its enough
of a clue to put you on the path to finding an answer (??).

Good luck.  :)

Neal


-Original Message-
From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 07, 2002 8:20 PM
To: [EMAIL PROTECTED]
Subject: How to set tomcat to use port 80...


Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type "tomcat4 run" as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith




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




How to set tomcat to use port 80...

2002-09-07 Thread Keith Pemberton

Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type "tomcat4 run" as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith