Specified RequestProcessor not compatible with TilesRequestProcessor

如题

项目从旧机器迁移到新机器上的问题,环境什么的都一样

1、Specified RequestProcessor not compatible with TilesRequestProcessor


参考http://blog.csdn.net/pdh822407904/article/details/22526175

解决方案:

把struts-config.xml中的: 
<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor" /> 
替换成: 
<controller processorClass="org.springframework.web.struts.DelegatingTilesRequestProcessor" />

替换后由于项目问题报错:

2、NoSuchMethodError: org.apache.struts.config.ForwardConfig.getContextRelative()


参考文章http://bbs.csdn.net/topics/300062034




综上是使用titles标签时候不一致导致

页面中引用的<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>

struts-titles.tld文件中的版本是1.2的项目中引用的是1.3.8的导致方法找不到

修改struts-titles.tld文件内容为http://struts.apache.org/tags-tiles中的内容。即可


另struts.jar包和其他struts-XXX.jar有冲突,删除struts.jar


参考:http://www.codeweblog.com/struts-spring-hibernate-integration-problems-tilesplugin-specified-requestprocessor-not-comp/


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值