The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)

Posted 沧海一滴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)相关的知识,希望对你有一定的参考价值。

配置项目,从tomcat低版本,放到tomcat8时,正常的项目居然报错了:

The method getDispatcherType() is undefined for the type HttpServletRequest

 

从网上查资料,找可能出现这个问题的因素:

1可能是环境变量,检查了没问题

2有人说jar包冲突

 

对于servlet-api.jar这个包,原来工程中有,在旧的tomcat版本中,如果不加,会出问题,新的版本中加了会有问题,删除这个包,重启,ok

 

http://blog.csdn.net/llwan/article/details/44562519

以上是关于The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)的主要内容,如果未能解决你的问题,请参考以下文章

Jquery ajax get request to aspx web method not hit the breakpoint in the method and error is json pa

the construction method (构造方法)

The server requested authentication method unknown to the client

The method getContextPath() from the type HttpServletRequest

[Vue warn]: Method “components“ has type “object“ in the component definition. Did you reference the

The method getTextContent() is undefined for the type Node