用是的SSH,struts为struts1,在里面用到了Interceptor截拦器,在struts-config.xml配置插件<plug-in className="net.sf.struts.saif.SAIFSpringPlugin">
    <set-property property="interceptor-config" value="/WEB-INF/interceptor-config.xml" />
  </plug-in>
spring 的代理处理器插件配置为<controller
processorClass="org.springframework.web.struts.DelegatingRequestProcessor" />
<message-resources parameter="ApplicationResources"/>
启动Tomcat时发生javax.servlet.UnavailableException: Specified RequestProcessor not compatible with saif。(期望的RequestProcessor 与saif不兼容) 异常。
请问各位该如何解决,谢谢?

解决方案 »

  1.   

    我的资源里有本myeclipse教程.特别是jdk、tomcat、ssh、ibatis等等介绍的很详细,配有大量源码说明 
    既可以用来做学习的教程书,又可以用来做工作的参考书 
    有需要的朋友可以去看看
      

  2.   

    myeclipse中把项目lib下的包先remove,再重新加载次
      

  3.   

    错误已解决,和大家分享一下解决方案
    在struts-config.xml将如下配置<controller
            processorClass="org.springframework.web.struts.DelegatingRequestProcessor" />
        <message-resources parameter="ApplicationResources"/>注释将action配置的type更改为org.springframework.web.struts.DelegatingActionProxy,如:<action path="/article" name="articleForm" input="/WEB-INF/article.jsp" type="org.springframework.web.struts.DelegatingActionProxy"
    validate="true" scope="request">
    <forward name="addok" path="/newartaddok.jsp"/>
    <forward name="article" path="/WEB-INF/article.jsp"></forward>
    </action>
    spring的配置不变 <bean name="/article" class="com.ky.blog.web.action.ArticleAction">
    <property name="articleService">
    <ref bean="articleService"/>
    </property>
    </bean>
    截拦器配置文件如下:<?xml version="1.0" encoding="UTF-8"?>
    <interceptor-config>
      <interceptor name="adminAuthInterceptor" type="com.ky.blog.web.interceptor.AdminAuthInterceptor"/>    <action type="/article">
        <interceptor name="adminAuthInterceptor"/>
      </action></interceptor-config>
    嗯,看了saif的官方网站,终于解决了,谢谢大家的帮助。