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:
- Tomcat7 starts with error listener start
- The Tomcat connector configured to listen on port 8080 failed to start.
- [Solved] tomcat at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:355)
- Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use.
- taskdef class org.apache.catalina.ant.InstallTask cannot be found
- Sudo starts Tomcat and reports an error. There is no Java environment
- Tomcat configuration SSL access chrome prompt err_ SSL_ VERSION_ OR_ CIPHER_ MISMATCH
- [Solved] linux Error: springboot org.springframework.context.ApplicationContextException: Failed to start bean ‘webServerStartStop’
- Tomcat Command Error: Catalina.stop: connect reused solution