启动项⽬报错:org.apache.catalina.LifecycleException。。。
原因
环境异常重启,项⽬java进程未关闭,原项⽬的端⼝依旧在占⽤。
⼀般为8080端⼝被占⽤
解决⽅法
以下两种⽅法都可以解决,原理相同(结束异常进程)
1. 简单粗暴:
打开任务管理器到java进程,将java进程关闭,重启完事!
2. 便于温习指令(⽆聊可折腾)
打开cmd命令窗⼝输⼊如下指令查看所有端⼝和PID
netstat -ano
到对应的端⼝对应的PID 输⼊指令到对应的进程
tasklist | findstr "7676"
杀掉该进程重启完事!
taskkill /f /t /
springframework和springboot报错信息
org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-2001]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.StandardService.addConnector(StandardService.java:225) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.springframework.at.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:256) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.at.TomcatWebServer.start(TomcatWebServer.java:198) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.boot.t.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:300) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.boot.t.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at t.fresh(AbstractApplicationContext.java:553) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.boot.fresh(ServletWebServerApplicationContext.java:140) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.fresh(SpringApplication.java:759) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.freshContext(SpringApplication.java:395) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
at com.jinke.missiongroupcontrolservice.MissionGroupControlServiceApplication.main(MissionGroupControlServiceApplication.java:22) [classes/:na]
Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed
at org.tor.Connector.startInternal(Connector.java:1020) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
... 13 common frames omitted
Caused by: java.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_181]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_181]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.8.0_181]
at at.util.NioEndpoint.bind(NioEndpoint.java:210) ~[tomcat-embed-core-8.5.31.jar:
8.5.31]
at at.util.AbstractEndpoint.start(AbstractEndpoint.java:1150) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at AbstractProtocol.start(AbstractProtocol.java:591) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.tor.Connector.startInternal(Connector.java:1018) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
... 14 common frames omitted
2018-09-13 13:36:54.001 INFO 15644 --- [ main] o.StandardService : Stopping service [Tomcat]
2018-09-13 13:36:54.006 WARN 15644 --- [ost-startStop-1] loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [spring.cloud.inetutils] but has failed to stop it. This is very likely to cre sun.misc.Unsafe.park(Native Method)
urrent.locks.LockSupport.park(LockSupport.java:175)
urrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
urrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
Task(ThreadPoolExecutor.java:1074)
urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
2018-09-13 13:36:54.006 WARN 15644 --- [ost-startStop-1] loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [lettuce-eventExecutorLoop-1-1] but has failed to stop it. This is very li sun.misc.Unsafe.park(Native Method)
urrent.locks.LockSupport.parkNanos(LockSupport.java:215)
urrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
urrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
urrent.SingleThreadEventExecutor.takeTask(SingleThreadEventExecutor.java:251)
urrent.DefaultEventExecutor.run(DefaultEventExecutor.java:64)
urrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
urrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
java.lang.Thread.run(Thread.java:748)
以下报错信息上⾯⽅法同意也可解决
原因 8080 端⼝被占⽤
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论