如题
项目从旧机器迁移到新机器上的问题,环境什么的都一样
1、Specified RequestProcessor not compatible with TilesRequestProcessor
参考http://blog.youkuaiyun.com/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.youkuaiyun.com/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/