栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

tomcat 报错 org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

tomcat 报错 org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp

报错:

Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [log4j] 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.


org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp

org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method createStandardContext
	javax.management.RuntimeOperationsException: Exception invoking method manageApp

	Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/yl]]


之前是使用的8.0版本启动没什么问题,然后以后部署维护的都要是8.5以上。经过一轮在网上的搜查,原因都是网上的servlet mapping 没有加 / 的问题。但是经过修改,还是启动不了。
然后总结了一下,几个不能启动问题:
1.servlet 与webapp 版本不对应问题
2.log4j 冲突问题
3.servletmapping 没加 “/”

4.web.xml中存在这加载顺序问题,以为必须要按照规范的顺序进行执行。

然后经过网上找文章:
原文地址

原来是顺序的问题。
感谢这位大神。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/826976.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号