在eclipse中启动tomcat时,出现以下错误。不要慌
原因:在工程中和tomcat中存在了两个struts2-core-2.3.1.2.jar。所以加载出错。解决方法就是删除其中的一个。
Unable to load configuration. - bean - jar:file:/E:/Users/lvgl/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Lyglxt/WEB-INF/lib/struts2-core-2.3.1.2.jar!/struts-default.xml:29:72
.....
.....
Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/E:/Users/lvgl/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Lyglxt/WEB-INF/lib/struts2-core-2.3.1.2.jar!/struts-default.xml:29:72原因:在工程中和tomcat中存在了两个struts2-core-2.3.1.2.jar。所以加载出错。解决方法就是删除其中的一个。
本文介绍了一种常见的Tomcat启动Struts2应用时遇到的配置错误,并提供了详细的解决方案。错误原因是工程与Tomcat中存在重复的struts2-core-2.3.1.2.jar文件导致加载失败。
1213

被折叠的 条评论
为什么被折叠?



