升級到tomcat8時Artifact SpringMvcDemo:war exploded: Server is not connected. Deploy is not


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM