Friday, 6 January 2012

Tomcat install in ubuntu: error " Permission denied :80"

catalina.out error:
Jan 7, 2012 12:52:59 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: Permission denied :80
 at org.apache.catalina.connector.Connector.start(
 at org.apache.catalina.core.StandardService.start(
 at org.apache.catalina.core.StandardServer.start(
 at org.apache.catalina.startup.Catalina.start(
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 at java.lang.reflect.Method.invoke(
 at org.apache.catalina.startup.Bootstrap.start(
 at org.apache.catalina.startup.Bootstrap.main(


Edit /etc/default/tomcat6 and set last line equal to:
# If you run Tomcat on port numbers that are all higher than 1023, then you                                                                                                    
# do not need authbind.  It is used for binding Tomcat to lower port numbers.                                                                                                  
# NOTE: authbind works only with IPv4.  Do not enable it when using IPv6.                                                                                                      
# (yes/no, default: no)                                                                                                                                                        

What is authbind?

$ apt-cache show authbind
 Allows non-root programs to bind() to low ports
 This package allows a package to be started as non-root but
 still bind to low ports, without any changes to the application.


No comments:

Post a Comment