{"id":2589,"date":"2017-06-20T04:34:31","date_gmt":"2017-06-20T04:34:31","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=2589"},"modified":"2024-12-21T03:29:39","modified_gmt":"2024-12-21T03:29:39","slug":"how-to-fix-severe-failed-to-initialize-component-connectorhttp-1-1-8080-catalina-lifecycleexception-protocol-handler-initialization-failed","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-fix-severe-failed-to-initialize-component-connectorhttp-1-1-8080-catalina-lifecycleexception-protocol-handler-initialization-failed\/","title":{"rendered":"Fix SEVERE Failed to initialize Component Connector [ Updated 2024 ]"},"content":{"rendered":"<h2>Fix SEVERE Failed to initialize Component Connector.<\/h2>\n<p>In this tutorial, we will learn how to fix the SEVERE Failed to Initialize Component Connector HTTP\/1.1-8080 error during the Apache Tomcat server. This error indicates that the server failed to start on the port 8080.<\/p>\n<h2>Error<\/h2>\n<p>SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP\/1.1-8080]]<br \/>\norg.apache.catalina.LifecycleException: Protocol handler initialization failed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2594 size-full\" title=\"SEVERE Failed Apache Server Error\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Tomcat-Error-Connector-Component-8080.png\" alt=\"SEVERE Failed Apache Server Error\" width=\"1920\" height=\"1024\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Tomcat-Error-Connector-Component-8080.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Tomcat-Error-Connector-Component-8080-300x160.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Tomcat-Error-Connector-Component-8080-1024x546.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Tomcat-Error-Connector-Component-8080-768x410.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Tomcat-Error-Connector-Component-8080-1536x819.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h2>Port Conflict<\/h2>\n<p>This error happens when there is a port conflict. In this case, some applications are listening on port 8080. The Jenkins CI server runs and listens on port 8080 on my machine.<\/p>\n<h2>BindException<\/h2>\n<pre>Caused by: java.net.BindException: Address already in use: bind\r\nat java.base\/sun.nio.ch.Net.bind0(Native Method)\r\nat java.base\/sun.nio.ch.Net.bind(Net.java:455)\r\nat java.base\/sun.nio.ch.Net.bind(Net.java:447)\r\nat java.base\/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:219)\r\nat java.base\/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)\r\nat org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:228)\r\nat org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:211)\r\nat org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1141)\r\nat org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1154)\r\nat org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)\r\nat org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:74)\r\nat org.apache.catalina.connector.Connector.initInternal(Connector.java:1039)\r\n\r\n\r\n<\/pre>\n<p><a href=\"https:\/\/www.testingdocs.com\/questions\/how-to-find-listening-ports-on-windows\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.testingdocs.com\/questions\/how-to-find-listening-ports-on-windows\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2598\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-on-Port-8080.png\" alt=\"Jenkins on Port 8080\" width=\"1765\" height=\"981\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-on-Port-8080.png 1765w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-on-Port-8080-300x167.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-on-Port-8080-1024x569.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-on-Port-8080-768x427.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Jenkins-on-Port-8080-1536x854.png 1536w\" sizes=\"auto, (max-width: 1765px) 100vw, 1765px\" \/><\/p>\n<h2>Fix<\/h2>\n<p>First, we need to decide which application to move off from the conflict port number. Since Tomcat is a useful application, we want to move the secondary application from the standard port number, i.e., 8080. It depends on what secondary application is causing the port conflict. In this case, it&#8217;s the Jenkins server. This may vary on your computer.<\/p>\n<p><strong>#1 Option<\/strong><\/p>\n<p>Change the port of the Jenkins server that runs on port 8080. This will resolve the port conflict on port 8080. Instructions on how to change the port for the Jenkins application.<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/www.testingdocs.com\/questions\/how-to-change-jenkins-port-number-on-windows\/\" target=\"_blank\" rel=\"noopener\">Change Jenkins Port Number On Windows<\/a><\/strong><\/li>\n<\/ul>\n<p><strong>#2 Option<\/strong><\/p>\n<p>This option is when we decide to move the Tomcat server from listening on port 8080.<\/p>\n<p>We can fix the error by changing the port of the Apache Tomcat server.<\/p>\n<p>The connector port is specified in the <strong>server.xml<\/strong> file under<\/p>\n<p>&lt;tomcat dir&gt;\\conf directory.<\/p>\n<p>Change the connector port to, let&#8217;s say, 9090 port number.<\/p>\n<p>&nbsp;<\/p>\n<pre>&lt;Connector port=\"9090\" protocol=\"HTTP\/1.1\"\r\nconnectionTimeout=\"20000\"\r\nredirectPort=\"9443\" \/&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2597 size-full\" title=\"Component Connector Server.xml\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Server-XML-COnnector-Port.png\" alt=\"Component Connector Server.xml\" width=\"1890\" height=\"798\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Server-XML-COnnector-Port.png 1890w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Server-XML-COnnector-Port-300x127.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Server-XML-COnnector-Port-1024x432.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Server-XML-COnnector-Port-768x324.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Server-XML-COnnector-Port-1536x649.png 1536w\" sizes=\"auto, (max-width: 1890px) 100vw, 1890px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Save the changes to the file.<\/p>\n<p>Restart Apache Tomcat Server.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2599\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Tomcat-on-9090-Port.png\" alt=\"Tomcat port 9090\" width=\"1782\" height=\"924\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Tomcat-on-9090-Port.png 1782w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Tomcat-on-9090-Port-300x156.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Tomcat-on-9090-Port-1024x531.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Tomcat-on-9090-Port-768x398.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Tomcat-on-9090-Port-1536x796.png 1536w\" sizes=\"auto, (max-width: 1782px) 100vw, 1782px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fix SEVERE Failed to initialize Component Connector. In this tutorial, we will learn how to fix the SEVERE Failed to Initialize Component Connector HTTP\/1.1-8080 error during the Apache Tomcat server. This error indicates that the server failed to start on the port 8080. Error SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP\/1.1-8080]] org.apache.catalina.LifecycleException: Protocol handler [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-2589","post","type-post","status-publish","format-standard","hentry","category-windows","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=2589"}],"version-history":[{"count":12,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2589\/revisions"}],"predecessor-version":[{"id":26503,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2589\/revisions\/26503"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=2589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=2589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=2589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}