严重: : 文档根元素 "struts-config" 必须匹配 DOCTYPE 根 "null"。

配置的xml如下 :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">


name="LoginActionForm"
type="com.LoginActionForm"/>

</form-beans>
<action-mappings>        
    <action 
            name="LoginActionForm"   path="/login"
            scope="request"
            type="com.LoginAction" 
             validate="true" >     
        <forward name="success"  path="/loginsuccess.jsp"/>
        <forward name="erro" path="/loginerro.jsp"/>                  
     </action> 
</action-mappings>

tomcat 一运行就出现
严重: Parse Error at line 9 column 15: 文档根元素 "struts-config" 必须匹配 DOCTYPE 根 "null"。

配置文件中少结束标签 检查一下