在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。所以加载出错。解决方法就是删除其中的一个。

猜你喜欢

转载自yudey.iteye.com/blog/1840482