Well, what can I do? I need to have jsp and struts support and this is the
only machine they can spare...I can imagine how slow it will be. Anyway, I'm
going to take your advice and reinstall from a tar. Should I put everything
into /var/tomcat4? Or should I break it up into other directories and create
symlinks like the rpm did?

vef

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2003 10:41 AM
To: Tomcat Users List
Subject: Re: connectors and port80


"Find a way"?  No, it's easy, but with the RPM it might be problematic.

As root:

$CATALINA_HOME/bin/startup.sh

That's all it takes.  However, that's assuming a binary install.  I don't 
use RPMs....but as far as I know, the Tomcat RPM for Red Hat puts things in 
various places that may or may not work with simple call to startup.sh.  
You'll probably need to dissect the tomcat4 daemon script installed by the 
RPM to figure out where things are and how they need to be called.

Option 2 (what I would do if you were me ;) ) is uninstall the RPM, 
download the binary package, and use that.

I might as well say this before someone else does....you're asking for 
grief running Tomcat on 64MB RAM, its going to be slooooooooooow.  You'd be 
better off running Apache on the machine with 64MB RAM, on port 80, and 
using mod_jk or mod_jk2 to connect to Tomcat running on some other machine 
with more horsepower.

John

On Mon, 2 Jun 2003 10:30:27 -0400, Fumo, Vince <[EMAIL PROTECTED]> 
wrote:

> You are correct on both. I'd love to run apache but the pc I'm running it 
> on
> has only 64mb of ram and I'm having problems as it is so I'm trying to 
> stay
> light. So, to solve my problem I have to find a way to get tomcat to run 
> as
> root correct?
>
> vef
>
> -----Original Message-----
> From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 
> 02, 2003 10:17 AM
> To: Tomcat Users List
> Subject: Re: connectors and port80
>
>
> I'm guessing Red Hat.  I'm guessing RPM.  If true and true, then the user 
> running Tomcat is a user called 'tomcat4', which does not have permission 
> to bind a service to port 80.
>
> Either run as root on port 80 (not as tomcat4), or use Apache on port 80 
> and redirect requests to Tomcat.  Apache is "safe" to run on port 80 as 
> root.
>
> John
>
> On Mon, 2 Jun 2003 10:10:02 -0400, Fumo, Vince <[EMAIL PROTECTED]> 
> wrote:
>
>> In answer to John and your question, I have tomcat starting as a service 
>> in
>> /etc/init.d . However, in this case with the port 80 thing, here is what 
>> I
>> did (as root)
>>
>> 1) service tomcat4 stop
>> 2) swapped the server.xml file
>> 3) service tomcat4 start
>>
>> and then I got (and copied to the previous email) the exception..
>>
>> vef
>>
>> -----Original Message-----
>> From: Mirit Naim [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 
>> 8:59 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: connectors and port80
>>
>> which account do you use to start tomcat?
>>
>>>>> [EMAIL PROTECTED] 06/02/03 04:55PM >>>
>> Nope..installed as root. Is there a way I can verify the group/user
>> ownership?
>>
>> vef
>>
>> -----Original Message-----
>> From: Mirit Naim [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 
>> 8:50 AM
>> To: [EMAIL PROTECTED] Subject: Re: connectors and port80
>>
>> Under which account you installed tomcat? If it is not root, you can't
>> run it at port 80 just like that (maybe there is a forwarding option,
>> I
>> don't know).
>>
>>>>> [EMAIL PROTECTED] 06/02/03 04:46PM >>>
>> I'm trying to get tc to run on a linux 9 server. I've got it working
>> fine on
>> port 8080 but when I change my connector to port 80 I get an access
>> denied
>> exception (see info below). I'm guessing I got the connector
>> definition
>> correct and that its something in linux. Do any of you have any
>> suggestions?
>> Connector (from server.xml)
>> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>> redirectPort="8443" bufferSize="2048" port="80"
>> connectionTimeout="20000"
>> scheme="http" enableLookups="true" secure="false"
>> protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol"
>> debug="0"
>> disableUploadTimeout="true" maxKeepAliveRequests="100" proxyPort="0"
>> tcpNoDelay="true" maxProcessors="75" minProcessors="5"
>> acceptCount="100"
>> useURIValidati onHack="false" connectionLinger="-1" compression="off">
>>
>> <Factory
>> className="org.apache.catalina.net.DefaultServerSocketFactory"/>
>> </Connector>
>> Exception output (from catalina.out)
>> [INFO] Registry - -Creating MBeanServer
>> java.net.BindException: Permission denied:80
>> at
>>
>
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
>
>>
>>
>> :280)
>> at
>> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
>> at
>>
>
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11
>
>>
>>
>> 17)
>> at org.apache.catalina.core.StandardService.initialize(Unknown
>> Source)
>> at org.apache.catalina.core.StandardServer.initialize(Unknown
>> Source)
>> at org.apache.catalina.startup.Catalina.start(Unknown Source)
>> at org.apache.catalina.startup.Catalina.execute(Unknown
>> Source)
>> at org.apache.catalina.startup.Catalina.process(Unknown
>> Source)
>> at java.lang.reflect.Method.invoke(Native Method)
>> at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>> [ERROR] Http11Protocol - -Error initializing endpoint
>> <java.net.BindException: Permission denied:80>
>> Catalina.start: LifecycleException:  Protocol handler initialization
>> failed:
>> java.net.BindException: Permission denied:80
>> LifecycleException:  Protocol handler initialization failed:
>> java.net.BindException: Permission denied:80
>> at
>>
>
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11
>
>>
>>
>> 19)
>> at org.apache.catalina.core.StandardService.initialize(Unknown
>> Source)
>> at org.apache.catalina.core.StandardServer.initialize(Unknown
>> Source)
>> at org.apache.catalina.startup.Catalina.start(Unknown Source)
>> at org.apache.catalina.startup.Catalina.execute(Unknown
>> Source)
>> at org.apache.catalina.startup.Catalina.process(Unknown
>> Source)
>> at java.lang.reflect.Method.invoke(Native Method)
>> at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>> Catalina.stop: LifecycleException:  This server has not yet been
>> started
>> LifecycleException:  This server has not yet been started
>> at org.apache.catalina.core.StandardServer.stop(Unknown
>> Source)
>> at org.apache.catalina.startup.Catalina.start(Unknown Source)
>> at org.apache.catalina.startup.Catalina.execute(Unknown
>> Source)
>> at org.apache.catalina.startup.Catalina.process(Unknown
>> Source)
>> at java.lang.reflect.Method.invoke(Native Method)
>> at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>>
>>
>> Vincent Fumo
>> Software Engineer
>> ACS State and Local Solutions
>> 777 Saw Mill River Rd.
>> Tarrytown, NY 10591
>> 914-789-6162
>> AIM : neodem2001
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>> additional commands, e-mail: [EMAIL PROTECTED]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

Reply via email to