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
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/
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.
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.
telnet localhost 8080
(or whatever host and port you are using)Could not open connection to the host
or similar error nothing is using this port after all.GET
(assuming HTTP protocol)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.
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.