在eclipse中启动tomcat时,出现以下错误
在eclipse中启动tomcat时,出现以下错误。不要慌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。所以加载出错。解决方法就是删除其中的一个。
页:
[1]