Only available on StudyMode
  • Download(s) : 72
  • Published : December 7, 2012
Open Document
Text Preview
JSP Alert Example
Everything is fine. One fine day, you do some changes in your webapp and restart tomcat. Then you get this error. LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: ` Permission denied :80. What does this mean??? (The complete error is given below for your reference) This is simply because of some permission issues. In linux, ports 1-1023 are privileged. Only root is allowed to bind to them. But in your startup script for tomcat, you will normally use the tomcat user to start tomcat. That is why you get this error. To resolve this and to start tomcat as root you can do this. 1.Open the file /etc/rc.d/init.d/tomcat6

2.Look for this line # $SU - $TOMCAT_USER -c "${TOMCAT_SCRIPT} start-security" and replace it with $SU - root -c "${TOMCAT_SCRIPT} start-security" 3.Look for this line as well just below the above line. $SU - $TOMCAT_USER -c "${TOMCAT_SCRIPT} start" >> $TOMCAT_LOG 2>&1 and replace it with $SU - root -c "${TOMCAT_SCRIPT} start" >> $TOMCAT_LOG 2>&1 4.Save the file and restart tomcat service

That't it. You're done. what you did is to start tomcat as root user and the root user has the privilege to open port 80. Everything should work now. Permission denied :80
at at at org.apache.coyote.http11.Http11Protocol.start( 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...
tracking img