I'm getting below exception after upgrading spring 3.2.0 to 4.3.3 with tomcat 8 ,
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
The method getDispatcherType() is undefined for the type HttpServletRequest
**
即使我在pom.xml中有javax.servlet-api依赖
**
<dependency>
<groupid>javax.servlet</groupid>
<artifactid>javax.servlet-api</artifactid>
<version>3.1.0</version>
</dependency>
Please advise.
堆栈跟踪: 在org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) 在org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198) 在org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:361) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:336) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:323) 在org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:574) 在org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356) 在org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) 在org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:725) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:131) 在org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在com.fmr.commons.cs203.servlet.CS203CoreServletFilter.doFilter(CS203CoreServletFilter.java:98) 在org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) 在org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) 在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) 在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) 在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516) 在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086) at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:659) 在org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:147) at org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:277) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61) 在java.lang.Thread.run(Thread.java:745)