tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Smith <...@ecs.soton.ac.uk>
Subject Re: connectors and port80
Date Mon, 02 Jun 2003 13:52:29 GMT
only root can bind ports below 1024. tomcat would have to be running as 
root to bind port 80.

Graham

Fumo, Vince wrote:

> 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:1117)
>
>         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:1119)
>
>         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/
>
>  
>
>  
>
>  
>
>  
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message