tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Pernica <jan.pern...@pernica.org>
Subject Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use
Date Thu, 15 Oct 2009 06:42:44 GMT
You cannot use port < 1024 as non-root. Use apache and AJP to connect 
tomcat running on eg. 8080. Regards

Jan

On 15.10.2009 8:18, Ken Johanson wrote:
> Hi everyone,
>
> Trying to run Tomcat Tomcat/6.0.18 + apr-1.3.8.tar.gz, I get a:
>
> Oct 15, 2009 12:11:20 AM org.apache.coyote.http11.Http11AprProtocol start
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [98] Address already in use
>         at 
> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612)
> ..
> (no listener is actually running on 98; this is just generic Sun msg 
> when not allowed to bind to prv'd port)
>
> I am also running Tomcat as a non-root user, e.g:
> daemon --user www "$CATALINA_HOME/bin/startup.sh"
> and also tried jsvc...
>
> same problem.
>
> Is there a configuration to change the port that APR uses from 98 to a 
> non-privileged (>1024) one?
>
> TIA,
> Ken
>
> PS - Connector.xml excerpts:
> <Connector
>                protocol="org.apache.coyote.http11.Http11AprProtocol"
>                port="8443"
>                enableLookups="false"
>                SSLEnabled="true"
>                scheme="https"
>                secure="true"
>                SSLCertificateFile="${catalina.base}/conf/cert.crt"
>                SSLCertificateKeyFile="${catalina.base}/conf/cert.key"
>                disableUploadTimeout="true"
>     />
> <Listener className="org.apache.catalina.core.AprLifecycleListener" 
> SSLEngine="on" />
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>

-- 
Děkuji a s pozdravem

Jan Pernica
===========================================
Pernica IT Solutions
Masarykovo náměstí 8
664 51 Šlapanice
Czech Republic
tel,fax: +420 544 245 068
mobile: +420 777 634 665
mailto:jan.pernica@pernica.org
http://www.pernica.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message