严重: Servlet /49951testonline threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path 
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1012)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

解决方案 »

  1.   

    我的web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>TemplateJ2EE</display-name>
    <welcome-file-list> 
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list> 
     <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet> 
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      
       
    </web-app>我的struts-config.xml:<?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="UserActionForm" type="ActionForm.UserActionForm"/>
    <form-bean name="AdministratorActionForm" type="ActionForm.AdministratorActionForm"/>
    <form-bean name="AdministratorgroupActionForm" type="ActionForm.AdministratorgroupActionForm"/>
    <form-bean name="AdminrulesActionForm" type="ActionForm.AdminrulesActionForm"/>
    <form-bean name="DanxuanActionForm" type="ActionForm.DanxuanActionForm"/>
    <form-bean name="DuoxuanActionForm" type="ActionForm.DuoxuanActionForm"/>
    <form-bean name="JiaoshiActionForm" type="ActionForm.JiaoshiActionForm"/>
    <form-bean name="KaoshiActionForm" type="ActionForm.KaoshiActionForm"/>
    <form-bean name="KechengActionForm" type="ActionForm.KechengActionForm"/>
    <form-bean name="TikuActionForm" type="ActionForm.TikuActionForm"/>
    <form-bean name="TimuActionForm" type="ActionForm.TimuActionForm"/>
    <form-bean name="TixingActionForm" type="ActionForm.TixingActionForm"/>
    <form-bean name="XueshengActionForm" type="ActionForm.XueshengActionForm"/>
    <form-bean name="ZhangjieActionForm" type="ActionForm.ZhangjieActionForm"/>
    <form-bean name="ZhishidianActionForm" type="ActionForm.ZhishidianActionForm"/>
    </form-beans>
    <action-mappings><action path="/Program/UserAction" type="Action.UserAction" name="UserActionForm" scope="request">
    <forward  name="success" path="/Program/Login.jsp"/>
    <forward  name="error" path="/Program/Login.jsp"/>
    </action><action path="/1/UserAction" type="Action.UserAction" name="UserActionForm" scope="request">
    <forward  name="success" path="/Program/Login.jsp"/>
    <forward  name="error" path="/Program/Login.jsp"/>
    </action> 
    <action path="/1/AdministratorAction" type="Action.AdministratorAction" name="AdministratorActionForm" scope="request">
    <forward  name="success" path="/1/Administrator.jsp"/>
    <forward  name="error" path="/1/Administrator.jsp"/>
    </action> 
    <action path="/1/AdministratorgroupAction" type="Action.AdministratorgroupAction" name="AdministratorgroupActionForm" scope="request">
    <forward  name="success" path="/1/Administratorgroup.jsp"/>
    <forward  name="error" path="/1/Administratorgroup.jsp"/>
    </action> 
    <action path="/1/AdminrulesAction" type="Action.AdminrulesAction" name="AdminrulesActionForm" scope="request">
    <forward  name="success" path="/1/Adminrules.jsp"/>
    <forward  name="error" path="/1/Adminrules.jsp"/>
    </action> 
    <action path="/1/DanxuanAction" type="Action.DanxuanAction" name="DanxuanActionForm" scope="request">
    <forward  name="success" path="/1/Danxuan.jsp"/>
    <forward  name="error" path="/1/Danxuan.jsp"/>
    </action> 
    <action path="/1/DuoxuanAction" type="Action.DuoxuanAction" name="DuoxuanActionForm" scope="request">
    <forward  name="success" path="/1/Duoxuan.jsp"/>
    <forward  name="error" path="/1/Duoxuan.jsp"/>
    </action> 
    <action path="/1/JiaoshiAction" type="Action.JiaoshiAction" name="JiaoshiActionForm" scope="request">
    <forward  name="success" path="/1/Jiaoshi.jsp"/>
    <forward  name="error" path="/1/Jiaoshi.jsp"/>
    </action> 
    <action path="/1/KaoshiAction" type="Action.KaoshiAction" name="KaoshiActionForm" scope="request">
    <forward  name="success" path="/1/Kaoshi.jsp"/>
    <forward  name="error" path="/1/Kaoshi.jsp"/>
    </action>  
    <action path="/1/KechengAction" type="Action.KechengAction" name="KechengActionForm" scope="request">
    <forward  name="success" path="/1/Kecheng.jsp"/>
    <forward  name="error" path="/1/Kecheng.jsp"/>
    </action> 
    <action path="/1/TikuAction" type="Action.TikuAction" name="TikuActionForm" scope="request">
    <forward  name="success" path="/1/Tiku.jsp"/>
    <forward  name="error" path="/1/Tiku.jsp"/>
    </action>  
    <action path="/1/TimuAction" type="Action.TimuAction" name="TimuActionForm" scope="request">
    <forward  name="success" path="/1/Timu.jsp"/>
    <forward  name="error" path="/1/Timu.jsp"/>
    </action> 
    <action path="/1/TixingAction" type="Action.TixingAction" name="TixingActionForm" scope="request">
    <forward  name="success" path="/1/Tixing.jsp"/>
    <forward  name="error" path="/1/Tixing.jsp"/>
    </action> 
    <action path="/1/XueshengAction" type="Action.XueshengAction" name="XueshengActionForm" scope="request">
    <forward  name="success" path="/1/Xuesheng.jsp"/>
    <forward  name="error" path="/1/Xuesheng.jsp"/>
    </action> 
    <action path="/1/ZhangjieAction" type="Action.ZhangjieAction" name="ZhangjieActionForm" scope="request">
    <forward  name="success" path="/1/Zhangjie.jsp"/>
    <forward  name="error" path="/1/Zhangjie.jsp"/>
    </action>  
    <action path="/1/ZhishidianAction" type="Action.ZhishidianAction" name="ZhishidianActionForm" scope="request">
    <forward  name="success" path="/1/Zhishidian.jsp"/>
    <forward  name="error" path="/1/Zhishidian.jsp"/>
    </action> 
    <action path="/2/UserAction" type="Action.UserAction" name="UserActionForm" scope="request">
    <forward  name="success" path="/Program/Login.jsp"/>
    <forward  name="error" path="/Program/Login.jsp"/>
    </action>
    <action path="/2/KaoshiAction" type="Action.KaoshiAction" name="KaoshiActionForm" scope="request">
    <forward  name="success" path="/2/Kaoshi.jsp"/>
    <forward  name="error" path="/2/Kaoshi.jsp"/>
    </action> 
    <action path="/2/TikuAction" type="Action.TikuAction" name="TikuActionForm" scope="request">
    <forward  name="success" path="/2/Tiku.jsp"/>
    <forward  name="error" path="/2/Tiku.jsp"/>
    </action> 
    <action path="/2/XueshengAction" type="Action.XueshengAction" name="XueshengActionForm" scope="request">
    <forward  name="success" path="/2/Xuesheng.jsp"/>
    <forward  name="error" path="/2/Xuesheng.jsp"/>
    </action>
    <action path="/2/ZhangjieAction" type="Action.ZhangjieAction" name="ZhangjieActionForm" scope="request">
    <forward  name="success" path="/2/Zhangjie.jsp"/>
    <forward  name="error" path="/2/Zhangjie.jsp"/>
    </action> 
    <action path="/2/ZhishidianAction" type="Action.ZhishidianAction" name="ZhishidianActionForm" scope="request">
    <forward  name="success" path="/2/Zhishidian.jsp"/>
    <forward  name="error" path="/2/Zhishidian.jsp"/>
    </action> 
    <action path="/3/UserAction" type="Action.UserAction" name="UserActionForm" scope="request">
    <forward  name="success" path="/Program/Login.jsp"/>
    <forward  name="error" path="/Program/Login.jsp"/>
    </action> 
    </action-mappings>
    </struts-config>