2023年12月8日发(作者:)

解决:elcipse启动tomcat时子容器启动失败问题

解决:

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Server.服务器版本: Apache Tomcat/7.0.100

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: 服务器构建: Feb 11 2020 08:31:12 UTC

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: 服务器版本号(:7.0.100.0

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: OS Name: Windows 10

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: OS.版本: 10.0

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: 架构: amd64

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Java 环境变量: D:StudyJAVAEEjavajre1.8

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: JVM 版本: 1.8.0_191-b12

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: JVM.供应商: Oracle Corporation

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: CATALINA_BASE: D:StudyJAVAEETomcatapache-tomcat-7.0.100

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: CATALINA_HOME: D:StudyJAVAEETomcatapache-tomcat-7.0.100

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Command line argument: -=D:StudyJAVAEETomcatapache-tomcat-7.0.100

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Command line argument: -=D:StudyJAVAEETomcatapache-tomcat-7.0.100

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Command line argument: -=D:StudyJAVAEETomcatapache-tomcat-7.0.100wtpwebapps

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Command line argument: -=D:StudyJAVAEETomcatapache-tomcat-7.0.100endorsed

七月 04, 2020 7:49:12 下午 nLoggerListener log

信息: Command line argument: -ng=GBK

七月 04, 2020 7:49:12 下午 ecycleListener lifecycleEvent

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the :

w64bin;D:StudyPythonAnaconda3Libraryusrbin;D:StudyPythonAnaconda3Librarybin;D:StudyPythonAnaconda3Scripts;C:Program Files (x86)Common

FilesOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)NVIDIA

CorporationPhysXCommon;C:Program FilesNVIDIA CorporationNVIDIA NvDLISR;C:Program FilesIntelWiFibin;C:Program FilesCommon

FilesIntelWirelessCommon;D:StudyDataBaseMysqlbin;D:StudyJAVAEEjavajdk1.8bin;D:StudyJAVAEEjavajdk1.8jrebin;C:Program Files (x86)VanDyke SoftwareClients;D:StudyJAVAEEMavenapache-maven-

3.6.3bin;D:StudyJAVAEEMavenapache-maven-3.6.3bin;D:StudytoolsGitTortoiseGitbin;C:Users11721AppDataLocalMicrosoftWindowsApps;D:Study编译器PyCharmpycharmPyCharm 2020.1.1bin;;C:Program Files

(x86)VanDyke SoftwareClients;;D:StudyJAVAEEEclipseeclipseeclipse;;.]

七月 04, 2020 7:49:12 下午 ctProtocol init

信息: 初始化协议处理器 ["http-bio-8080"]

七月 04, 2020 7:49:13 下午 na load

信息: Initialization processed in 457 ms

七月 04, 2020 7:49:13 下午 rdService startInternal

信息: Starting service [Catalina]

七月 04, 2020 7:49:13 下午 rdEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/7.0.100

七月 04, 2020 7:49:13 下午 nerBase startInternal

严重: 子容器启动失败

ionException: cleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pet-buy]]

at (Unknown Source)

at (Unknown Source)

at nternal(:1241)

at nternal(:804)

at (:183)

at nerBase$(:1705)

at nerBase$(:1695)

at (Unknown Source)

at ker(Unknown Source)

at PoolExecutor$(Unknown Source)

at (Unknown Source)

Caused by: cleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pet-buy]]

at SubClassException(:440)

at (:198)

... 6 more

Caused by: lArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using

absolute ordering.

at ebFragments(:2338)

at fig(:1279)

at ureStart(:888)

at cleEvent(:388)

at fecycleEvent(:123)

at nternal(:5606)

at (:183)

... 6 more

七月 04, 2020 7:49:13 下午 nerBase startInternal

严重: 子容器启动失败

ionException: cleException: 子容器启动失败

at (Unknown Source)

at (Unknown Source)

at nternal(:1241)

at nternal(:300)

at (:183)

at nternal(:444)

at (:183)

at nternal(:744)

at (:183)

at (:712)

at 0(Native Method)

at (Unknown Source)

at (Unknown Source)

at (Unknown Source)

[D:StudyJAVAEEjavajre1.8bin;C:WindowsSunJavabin;C:Windowssystem32;C:Windows;D:/Study/JAVAEE/java/jre1.8/bin/server;D:/Study/JAVAEE/java/jre1.8/bin;D:/Study/JAVAEE/java/jre1.8/lib/amd64;D:StudyPythonAnaconda3;D:StudyPythonAnacon at (:284)

at (:415)

Caused by: cleException: 子容器启动失败

at nternal(:1252)

at nternal(:804)

at (:183)

at nerBase$(:1705)

at nerBase$(:1695)

at (Unknown Source)

at ker(Unknown Source)

at PoolExecutor$(Unknown Source)

at (Unknown Source)

Caused by: ionException: cleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pet-buy]]

at (Unknown Source)

at (Unknown Source)

at nternal(:1241)

... 8 more

Caused by: cleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pet-buy]]

at SubClassException(:440)

at (:198)

... 6 more

Caused by: lArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using

absolute ordering.

at ebFragments(:2338)

at fig(:1279)

at ureStart(:888)

at cleEvent(:388)

at fecycleEvent(:123)

at nternal(:5606)

at (:183)

... 6 more

七月 04, 2020 7:49:13 下午 na start

严重: 所必需的服务组件启动失败,所以无法启动Tomcat

cleException: 子容器启动失败

at nternal(:1252)

at nternal(:300)

at (:183)

at nternal(:444)

at (:183)

at nternal(:744)

at (:183)

at (:712)

at 0(Native Method)

at (Unknown Source)

at (Unknown Source)

at (Unknown Source)

at (:284)

at (:415)

Caused by: ionException: cleException: 子容器启动失败

at (Unknown Source)

at (Unknown Source)

at nternal(:1241)

... 13 more

Caused by: cleException: 子容器启动失败

at nternal(:1252)

at nternal(:804)

at (:183)

at nerBase$(:1705)

at nerBase$(:1695)

at (Unknown Source)

at ker(Unknown Source)

at PoolExecutor$(Unknown Source)

at (Unknown Source)

Caused by: ionException: cleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pet-buy]]

at (Unknown Source)

at (Unknown Source)

at nternal(:1241)

... 8 more

Caused by: cleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pet-buy]]

at SubClassException(:440)

at (:198)

... 6 more

Caused by: lArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using

absolute ordering.

at ebFragments(:2338)

at fig(:1279)

at ureStart(:888)

at cleEvent(:388)

at fecycleEvent(:123)

at nternal(:5606)

at (:183)

... 6 more

七月 04, 2020 7:49:13 下午 ctProtocol pause

信息: Pausing ProtocolHandler ["http-bio-8080"]

七月 04, 2020 7:49:13 下午 rdService stopInternal

信息: 正在停止服务[Catalina]

七月 04, 2020 7:49:13 下午 ctProtocol destroy

信息: 正在摧毁协议处理器 ["http-bio-8080"]

解决方案(1 / 2):

1. 方案1:

我使用的是tomcat7,找到这样conf 目录下的ties文件并打开,找到这行代码:Skip=

将其改成:Skip=*.jar

保存并关闭,重新启动eclipse和tomcat即可。

2. 方案2:

如果第一种方案不行,那么我们直接将

这行代码 放到 项目的 即可,加入该代码后项目可能会标红,但不影响 项目的运行。