SSH框架学习摸索记

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">

 
posted @ 2018-04-06 09:30  蘑菇蘑菇终于开花了  阅读(127)  评论(0编辑  收藏  举报