我正在将tomcat服务器从tomcat7升级到tomcat 8.但似乎struts 1.1无法在tomcat 8上运行。是否有人知道tomcat 8不支持struts 1.1。
下面是堆栈跟踪
org.apache.catalina.core.ApplicationDispatcher调用 严重:Servlet jsp的Servlet.service()引发了异常 org.apache.jasper.JasperException:/pages/base/onePanelTemplate.jsp(line:1,column:1)null 在org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) 在org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91) 在org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:335) 在org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:368) 在org.apache.jasper.compiler.Parser.parseDirective(Parser.java:471) 在org.apache.jasper.compiler.Parser.parseElements(Parser.java:1435) 在org.apache.jasper.compiler.Parser.parse(Parser.java:139) 在org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227) 在org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) 在org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:356) 在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:585) 在org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363) 在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:729) 在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) 在org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:719) 在org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) 在org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:390) 在org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:317) 在org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078) 在org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295) 在org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:271) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:332) 在org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232) 在org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:622) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:729) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在jcdecaux.common.ntlm.NTLMSecurityFilter.doFilter(NTLMSecurityFilter.java:26) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在jcdecaux.common.session.expiry.SessionExpiryFilter.doFilter(SessionExpiryFilter.java:84) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在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) 在jcdecaux.common.filter.CharsetFilter.doFilter(CharsetFilter.java:41) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) 在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 在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:212) 在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) 在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 在org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521) 在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096) at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:674) 在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1500) 在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.run(NioEndpoint.java:1456) 在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)
答案 0 :(得分:0)
struts taglib的问题我已经包含在使用JSP 1.1的jsp中,而tomcat 8支持JSP2.3。改变了jsp,它现在正在运行。谢谢你的帮助