SSH框架学习摸索记

时间:2018-04-06 11:17:17   收藏:0   阅读:181

Unable to load configuration. - bean - jar:file:/E:/tomcat-7.0.11/webapps/struts/WEB-INF/lib/struts 问题解决:

file:/E:/tomcat-7.0.11/webapps/struts/WEB-INF/lib/struts2-core-2.2.3.jar按照这路径找到struts2-core-2.2.3.jar文件,
在这路径中存在相同类型的jar包(版本不一样),删除不适合当前项目的一个,一般是删除旧版本的!

Document root element "struts",must match DOCTYPE root "null"

上述错误出现的原因是因为在编写配置文件struts.xml的时候,在xml中没有添加如下声明造成的:

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD STRUTS Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

 

原文:https://www.cnblogs.com/zhangjiabei/p/8726887.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!