错误原因是lz的 <action path="/login" type="org.springframework.web.struts.DelegatingActionProxy" name="loginForm"  
          input="/login.jsp" 
          scope="request" validate="true" > 
     <forward name="success" path="/main.jsp" />   
   </action> 中的path="/login"与 <bean name="/loginForm" class = "com.tools.action.LoginAction"> 
          <property name="authImpl"> 
            <ref bean="authImpl"/> 
          </property> 
      </bean> 中的name没有对应解决办法:
改成一致就好了把applicationContext.xml 
 <bean name="/loginForm" class = "com.tools.action.LoginAction"> 
          <property name="authImpl"> 
            <ref bean="authImpl"/> 
          </property> 
      </bean> 改成 <bean name="/login" class = "com.tools.action.LoginAction"> 
          <property name="authImpl"> 
            <ref bean="authImpl"/> 
          </property> 
      </bean> 

解决方案 »

  1.   

    lz有很多两个xml没有对应上的,比如:regesiter都对应上就好了,对应不上的就删除掉
      

  2.   

    <bean name="/loginForm" class = "com.tools.action.LoginAction"> 
              <property name="authImpl"> 
                <ref bean="authImpl"/> 
              </property> 
          </bean> 有没有AUTHIMPL这个属性.有没有SET和GET方法?
      

  3.   

         <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
               <property name="dataSource">
                     <ref local="dataSource" />
               </property>
         </bean>
         
         <bean id="authImpl" class="com.tools.auth.AuthImpl" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
                  <property name="jdbcTemplate">
                    <ref bean="jdbcTemplate"/>
                  </property>
         </bean>
    <bean name="/login" class = "com.tools.action.LoginAction">
             <property name="authImpl">
               <ref bean="authImpl"/>
             </property>
         </bean>
    这个是authImpl的xml设置, 我不知道是否正确
      

  4.   

    问题已解决,谢谢2位的提示.
    解决如下: 修改了bean id "authImpl" 指向接口AuthService