Tomcat 7 startup.bat exception

后端 未结 5 594
栀梦
栀梦 2021-02-08 06:42

When i run startup.bat file of Tomcat 7 i m getting the following error.

INFO: Initializing ProtocolHandler [\"http-apr-8080\"] Mar 01, 2014 12:18:22

相关标签:
5条回答
  • 2021-02-08 07:06

    the port 8080 might be used by other application. go to server.xml in tomcat and change the port number, and restart the tomcat. To change port follow http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/

    0 讨论(0)
  • 2021-02-08 07:09

    You may have another instance of Tomcat already running in the background and using port 8080. Try shutting it down with shutdown.bat, or look for a java process in the Windows Task Manager. You can also reboot if you really want to be sure that there's no other instance running.

    0 讨论(0)
  • 2021-02-08 07:10

    An error like Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"] means that Tomcat cannot start bind to (use) port 8080.

    I had a silar Failed to initialize end point associated with ProtocolHandler ["http-apr-80"] on port 80 the other day.

    Try to connect with telnet on 8080 (or whatever port this error occurs on) to figure out what process is using this port.

    1. Open a telnet connection telnet localhost 8080 (or whatever host and port you are using)
    2. Expect to see a blank screen with blinking cursor. If you get a Could not open connection to the host or similar error nothing is using this port after all.
    3. Type a command like GET (assuming HTTP protocol)
    4. See if the server responds whith a HTTP responds which could reveil a bit about what process is serving this port.
    0 讨论(0)
  • 2021-02-08 07:14

    You may have another instance of Tomcat already running in the background and using port 8080. Go to Task Manager and end all the java*.exe processes.

    0 讨论(0)
  • 2021-02-08 07:27

    I had the same problem and I ran netstat -ano > output.txt In output.txt file, I saw the the System process with PID 4 was holding onto that 8080 port. I could not release it in any way so I restarted the system. After that it was fine.

    0 讨论(0)
提交回复
热议问题