问题描述
严重: Servlet /SunSGM threw load() exceptionjava.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;at org.quartz.JobDetail.<init>(JobDetail.java:85)at com.sunyard.suncfs.scheduler.modal.SchedulerTask.getJobDetail(SchedulerTask.java:72)at com.sunyard.suncfs.scheduler.SchedulerHandler.addJob(SchedulerHandler.java:63)at com.sunyard.suncfs.scheduler.SchedulerHandler.start(SchedulerHandler.java:126)at com.sunyard.suncfs.server.InitServlet.<init>(InitServlet.java:43)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at java.lang.Class.newInstance0(Class.java:355)at java.lang.Class.newInstance(Class.java:308)at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1061)at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1009)at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4885)at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5212)at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5207)at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)at java.util.concurrent.FutureTask.run(FutureTask.java:138)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)at java.lang.Thread.run(Thread.java:662)2011-8-21 15:25:34 org.apache.coyote.AbstractProtocolHandler start
解决方案
当应用程序试图调用类(静态或实例)的指定方法,而该类已不再具有该方法的定义时,抛出该异常。 通常由编译器捕获该错误;仅当类定义发生不相容的更改时,在运行时才会发生该错误。 你应该是调用某个方法时,程序找不到报的错.重新部署一下试试.可能代码更新没过.