问题现象:

访问任一jsp(即使是空白文件)文件报The method getDispatcherType() is undefined for the type HttpServletRequest错误。

定位:

根据错误提示,查询到getDispatcher位于servlet-api.jar包中。

反编译tomcat/webapp/proj/lib中的servelt-api.jar,发现确实没有这个方法;

 

问题解决:

清理这个包,删除之,并升级到最新的servelt-api包。解决;

 

相关文章:

  • 2021-06-06
  • 2021-09-23
  • 2021-06-04
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案