top-rated free essay

Capstone

By benessa25 Dec 07, 2012 688 Words
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: `java.net.BindException: 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. java.net.BindException: Permission denied :80
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549) at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565) at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203) at org.apache.catalina.connector.Connector.start(Connector.java:1087) at org.apache.catalina.core.StandardService.start(StandardService.java:534) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365) at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.(ServerSocket.java:185)
at java.net.ServerSocket.(ServerSocket.java:141)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538) ... 12 more

0:11:56 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: `java.net.BindException: Permission denied :80 at org.apache.catalina.connector.Connector.start(Connector.java:1094) at org.apache.catalina.core.StandardService.start(StandardService.java:534) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 0:11:56 org.apache.catalina.startup.Catalina start`
JSP Alert is used to put the validation on login page for the users. The example in this Tutorial provides you to create the validation on the login form using Javascript method in JSP page. The Tutorial illustrate an

Cite This Document

Related Documents

  • capstone

    ...Unit 8 Assignment 1: Writing a Prospective Schedule Course Objectives and Learning Outcomes Apply the tools for overcoming obstacles and the tools of connection to various business and personal scenarios. Analyze the costs and benefits of being a person of integrity. Identify professional work habits that may lead to success in the workpl...

    Read More
  • Capstone

    ...Chapter 2 Review of Related Literature The Given Literature below are the studies that encourages us to do our very own card game successfully and knowledgeable. 2.1 Foreign Literature 2.1.1 Game theory and AI: a unified approach to poker games(Thesis for graduation as Master of Artificial Intelligence University of Amsterdam) In...

    Read More
  • Capstone

    ...Lisa Ramos 04/30/2013 Lyle Martin CJA 484 Future Trends In this paper the writer will cover the topic of the future trends in the California department of corrections and rehabilitation system. It will explore the budgetary and managerial impacts that are thought to be expected in the future, as well as an explanation on the reasons be...

    Read More
  • Capstone

    ...MISSION AND VISION STATEMENTS A vision statement is what companies do to give a full idea of what they want for the company or what direction the company is targeting. It’s a clear structure of what the company wants and why they want what they want. A vision statement is when a company set long term or short term goals. V...

    Read More
  • capstone

    ...COM Assignment: Résumé and Job-Application Letter Certain details attract the attention of interviewers, whereas other aspects of job-search communication routinely disqualify applicants. Savvy job hunters know how to highlight strengths and learn how to deal with any difficulties in their work background. It is also important to cus...

    Read More
  • Dei Mare Capstone

    ... The Evolution of Dei Mare Justin Iida, Damien Johnson Marymount California University BUS 498 Capstone Project 11 April 2014 Introduction Conceived in the summer of 2012, Dei Mare began just as the name implies.  Meaning "of the sea," our work stems from the labors of the Italian immigrants who settl...

    Read More
  • capstone

    ...Special Education is becoming more of a concern with each passing day. There are more and more problems with teaching children with special needs as well as there are problems with diagnosing them. In the first half of the 20th century it started to become increasingly popular in the United States. (Ferguson 148). It is a tedious and time con...

    Read More
  • Capstone

    ...executive responsible for the firm as a whole); ------------------------------------------------- (2) Understand and appreciate the difficulty of integrating (coordinating) functional decisions (research, marketing, production, human resources, and finance) into an effective overall business strategy; -----------------------------------------...

    Read More

Discover the Best Free Essays on StudyMode

Conquer writer's block once and for all.

High Quality Essays

Our library contains thousands of carefully selected free research papers and essays.

Popular Topics

No matter the topic you're researching, chances are we have it covered.