Click startup.bat appear tomcat flash back, start unsuccessful solutions

Problem Description: tomcat Click startup.bat case the command line flash back appears
open startup.bat, joined in the first row
SET JAVA_HOME = D: \ jdk \ jdk1.8.0_121 jdk [path]
SET TOMCAT_HOME = D: \ apache- tomcat -8.5.29 \ apache-tomcat-8.5.29 tomcat [path]

 

Open shutdown.bat, the same input line of the first:
the SET the JAVA_HOME = D: \ jdk \ jdk1.8.0_121 jdk path []
SET TOMCAT_HOME = D: \ apache- tomcat-8.5.29 \ apache-tomcat-8.5.29 [path] tomcat

 

 

[Note: tomcat path do not add bin]

Double-click the tomcat bin directory below startup.bat inside, if the following conditions, the port is occupied,
org.apache.catalina.LifecycleException: Failed to the initialize the Component [Connector [AJP / 1.3-8009]]
AT org.apache. catalina.util.LifecycleBase.init (LifecycleBase.java:112)
AT org.apache.catalina.core.StandardService.initInternal (StandardService.java:549)
AT org.apache.catalina.util.LifecycleBase.init (LifecycleBase.java: 107)
AT org.apache.catalina.core.StandardServer.initInternal (StandardServer.java:875)
AT org.apache.catalina.util.LifecycleBase.init (LifecycleBase.java:107)
AT org.apache.catalina.startup.Catalina .load (Catalina.java:632)
AT org.apache.catalina.startup.Catalina.load (Catalina.java:655)
AT sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method,)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:995)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
… 12 more
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1086)
at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:268)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:993)
… 13 more

 

 

Shortcuts win + r, enter cmd, enter the command line, enter shutdown.sh
and then restart it, h
or command line input, startup.bat

 

 

The browser then enter http: localhost: 8080, the following interface will be successful:

Guess you like

Origin www.cnblogs.com/coder-wf/p/12194443.html