org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8080]]

Error message:

SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed.

reason:

Port conflict. The message above is 8080

Solution:

Modify the listening port of Tomcat and the <Connector port=”” />

vim tomcat/conf/server.xml

Find the following properties and modify the port number inside:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

Attached:

If you use Tomcat to run Solr cluster, this error will be reported. After modifying the above, you also need to modify the corresponding port configuration in Solr.

vim solr/solr.xml

Find the following properties and modify the port number:

<solrcloud>
   <str name="host">Keep the original hostname or IP</str>
    <int name="hostPort">Modify to the new port number above</int>
</solrcloud>

Similar Posts: