升级到tomcat8时Artifact SpringMvcDemo:war exploded: Server is not connected. Deploy is not

时间:2015-12-22 01:12:50   收藏:0   阅读:1933

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!