javaweb-java.lang.NoSuchMethodError

问题描述

java.lang.NoSuchMethodError

访问web服务器的action,报错

 严重: Servlet.service() for servlet [default] in context with path [/TaoMi] threw exception [Filter execution threw an exception] with root cause
java.lang.NoSuchMethodError: org.apache.struts2.dispatcher.FilterDispatcher.getDevModeOverride()Ljava/lang/Boolean;
    at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:92)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
    at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
    at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
    at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at 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)
    at java.lang.Thread.run(Thread.java:745)

解决方案

重新部署tomcat问题解决

解决方案二:

http://blog.csdn.net/seng3018/article/details/7010796

解决方案三:

之前是没有问题的,一次重启服务器后就这样了,求教

解决方案四:

找不到了方法,,,,,

解决方案五:

getDevModeOverride()找不到这个方法

解决方案六:

java.lang.NoSuchMethodError问题处理
java.lang.NoSuchMethodError: ognl.SimpleNode.isEvalChain(Lognl/OgnlContext;)Z解决方法
使用Jedis:java.lang.NoSuchMethodError
----------------------

时间: 2024-11-18 07:49:44

javaweb-java.lang.NoSuchMethodError的相关文章

exception-升级ssh整合出现错误java.lang.NoSuchMethodError:

问题描述 升级ssh整合出现错误java.lang.NoSuchMethodError: 下面是控制台打印的信息,麻烦看到的高手帮忙解决: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [cn/com/hope/framework/spring/appl

java se-求助java.lang.NoSuchMethodError问题

问题描述 求助java.lang.NoSuchMethodError问题 All, 新人一枚,在学习过程中出现如题的问题,Java 包Java SE Development Kit8 Update51. 程序如下: public class TestConstruct { public static void main(String[] args) { Person p=new Person(12); p.show("Java construct test display"); } }

j急!急!急!websphere服务器报错:java.lang.NoSuchMethodError: ...Ljavax/servlet/http/HttpServletRequest

问题描述 错误如下,是j2ee.jar包的问题还是IE的问题呢?请大侠赐教![09-4-2315:14:30:905CST]00000038ServletWrappeESRVE0068E:无法调用servletcaair.front.SingleController的service()方法.抛出异常:java.lang.NoSuchMethodError:pub/utils/RequestHelper.getRequest()Ljavax/servlet/http/HttpServletRequ

java类的问题-java.lang.NoSuchMethodError

问题描述 java.lang.NoSuchMethodError 启动weblogic报错信息如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [D:WorkspacesMyEclipse 8.5salesV2.0Current_1061_C00_20140806webappWEB-INFcla

websphere下报java.lang.NoSuchMethodError

问题描述 我使用的webspherewas7.0服务器,会报java.lang.NoSuchMethodError,但是在测试环境上是正常的,测试环境和生产环境是同样的 解决方案 解决方案二:提供一条线索-非常有可能就是你的project引用的lib库包和was里面的库包冲突了,自己排查吧

java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.isAsyncStarted()Z 的解决

jetty 9 嵌入式开发时,启动正常,但是页面一浏览就报错如下: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.isAsyncStarted()Z 原因:jetty 9 依赖的servlet-api是3.X版本,如果项目中还有其它第3方开源库隐式依赖了2.x版本的servlet-api,就会报这个错.解决办法:gradle项目中,gradle dependencies 分析所有的依赖项,找出依赖低版本ser

zookeeper java.lang.NoSuchMethodError异常

问题描述 zookeeper java.lang.NoSuchMethodError异常 没找到问题所在 就是在myeclipse有出现 但在IDEA上就没有这个错误 错误如下: java.lang.NoSuchMethodError: org.apache.zookeeper.ZooKeeper.(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)V at org.apache.curator.utils.DefaultZookeeperFa

java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()

使用spring,hibernate时,报错: Xml代码   Caused by: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;       at org.springframework.orm.hibernate4.HibernateTransactionManager.doBegin(HibernateTransactionManager.java

项目集成hibernate后,启动时报错java.lang.NoSuchMethodError

在项目集成hibernate后,启动时报错 org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'applicationInitializer' defined in file[D:\地址.class]: Invocation ofinit method failed; nested exception is java.lang.NoSuchMethodError:org.ap

java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.<init>(L

关于错误: java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.<init>(Ljava/lang/Class;)V  相应我,是因为你SPRING MVC的包没有加全.你可以新建一个WEB项目.加入SPRING 3.0 的所有包.主要是WEB类的.就可以解决这个问题了.关键就是少包.特别是你的项目原来是SRPING 2.5的.然后想使用注解的.很可能会遇到这个问