TOMCAT部署项目报错,More than one fragment with the name [spring_web] was found.

在TOMCAT部署项目时遇到报错:More than one fragment with the name [spring_web] was found。经过调查,问题出在webapps项目名WEB-INFlib目录下存在两个不同版本的spring-web.jar。删除冗余的jar包,保留一个版本后,错误成功解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以下是重要的几个报错节点 

20-Aug-2019 12:01:19.909 严重 [Catalina-startStop-1] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/demo]]

Caused by: java.lang.IllegalArgumentException: 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. 

经查原因是:

在D:\apache-tomcat-8.5.42-windows-x64\webapps\项目名\WEB-INF\lib 下

有两个版本的 spring-web.jar包  删除一个版本,留存了一个版本之后,问题解决、 

报错原因 Caused by: org.apache.catalina.LifecycleException: 鏃犳硶鍚姩缁勪欢[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cloudlibrary_war_exploded]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:186) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683) ... 42 more Caused by: java.lang.IllegalArgumentException: 鎵惧埌澶氫釜鍚嶄负[spring_web]鐨勭墖娈点�傝繖鏄笉鍚堟硶鐨勭浉瀵规帓搴忋�傛湁鍏宠缁嗕俊鎭紝璇峰弬闃匰ervlet瑙勮寖鐨勭8.2.2 2c鑺傘�傝�冭檻浣跨敤缁濆鎺掑簭銆� at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2275) at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2231) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1295) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:987) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:304) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4820) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ... 43 more 01-Jun-2025 11:32:55.920 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke 璋冪敤鏂规硶[createStandardContext]鏃跺彂鐢熷紓甯� javax.management.RuntimeOperationsException: 璋冪敤鏂规硶[manageApp]鏃跺彂鐢熷紓甯�
06-02
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

唐 城

小朋友,你是不是有很多问号?

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值