可是我重新部署,报错: it could not be completely removed in the underployment phase .the most common cause of this problem is attempting to redeploy while the server is running,which has locked one or more files 

解决方案 »

  1.   

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"><struts-config>
      <data-sources />
      <form-beans >
        <form-bean name="loginForm" type="com.yourcompany.struts.form.LoginForm" />  </form-beans>  <global-exceptions />
      <global-forwards />
      <action-mappings >
        <action
          attribute="loginForm"
          input="/errors.jsp"
          name="loginForm"
          path="/login"
          scope="request"
          type="com.yourcompany.struts.action.LoginAction" >
          
          <forward name="succ" path="/login_success.jsp"></forward>
          <forward name="fail" path="/login_failure.jsp"></forward>
          </action>  </action-mappings>  <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
    </struts-config>
      

  2.   

    你的配置文件改过之后有没有重启服务器?
    每次只要动.xml文件就要重启服务器的(可能有点绝对了,但防患于未然)你重启服务器再发布试试在线关注ing!
      

  3.   

    楼上说的不错,用到tomcat服务的时候部署的时候最好是把服务停止之后在部署