gpt4 book ai didi

java - Servlet 调度程序抛出异常

转载 作者:行者123 更新时间:2023-12-02 08:34:41 26 4
gpt4 key购买 nike

我创建了一个简单的 Spring Web 流程应用程序。当应用程序启动时,我的 Tomcat 服务器上出现以下错误:

SEVERE: Servlet.service() for servlet dispatcher threw exception java.lang.NoSuchFieldError: WEB_APPLICATION_CONTEXT_ATTRIBUTE        at org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:48)        at org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:180)        at org.springframework.webflow.engine.ViewState.render(ViewState.java:282)        at org.springframework.webflow.engine.ViewState.refresh(ViewState.java:241)        at org.springframework.webflow.engine.ViewState.resume(ViewState.java:219)        at org.springframework.webflow.engine.Flow.resume(Flow.java:545)        at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)        at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)        at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)        at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

我正在使用 Spring 2.5.6 、Spring web flow 2.0.8 和 Tomcat 6.0.20...

知道为什么 WEB_APPLICATION_CONTEXT_ATTRIBUTE 字段不可用吗?如何解决此错误?

最佳答案

您的 Spring JAR 版本仍然遇到与 Spring Web flow configuration error 中相同的问题。

RequestContext.WEB_APPLICATION_CONTEXT_ATTRIBUTE 在 Spring 2.0 中不存在,仅在 2.5.6 及更高版本中存在。

关于java - Servlet 调度程序抛出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2260409/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com