javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class org.springframework.web.struts.ContextLoaderPlugIn: java.lang.ClassCastException: org.springframework.web.struts.ContextLoaderPlugIn

解决方案 »

  1.   

    包冲突还是不全?把工程clean了重新build一下看看?看上去是环境问题
      

  2.   

    org.springframework.web.struts.ContextLoaderPlugIn类没找到,需要引入特殊的jar包,具体jar包名记不住了,你可以网上搜搜。
    你的Struts是Struts1还是Struts2,两个配置是不一样的Struts2不需要org.springframework.web.struts.ContextLoaderPlugIn这个配置,我以前就被误导了
      

  3.   

    java.lang.ClassCastException  似乎是包冲突了 或是版本不对 
      

  4.   

    没在struts-config.xml中些plugin吧 在struts_config.xml里边添加<plug-in className="org.springframework.web.struts.contextloaderplugin">
      <set-property property="contextConfigLocation" value="classpath:applicationContext.xml"/>
    </plug-in>
      

  5.   


    <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="" />
    </plug-in>
    我估计是类似上面struts-config.xml的配置中,property的name和你配的value类型不匹配
      

  6.   

    找不到class文件,没有导入jar包或者导入了错误的jar包
      
      

  7.   

    那就查看applicationContext.xml文件和struts.xml文件的配置。绝对是配置没有配好