java.lang.NoSuchMethodError:org.springframework.core.OrderComparator.sort(Ljava / util / List;)V

时间:2018-10-24 14:04:57

标签: linux java-8 tomcat8

我正在使用ANT构建应用程序,而当我尝试在Linux上进行部署时,tomcat遇到了此问题。但是能够在Windows本地环境中运行我的tomcat

错误[localhost-startStop-1](ContextLoader.java:220)-上下文初始化失败 java.lang.NoSuchMethodError:org.springframework.core.OrderComparator.sort(Ljava / util / List;)V     在org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:597)     在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)     在org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)     在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)     在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)     在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)     在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)     在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)     在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)     在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)     在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)     在org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)     在org.apache.catalina.startup.HostConfig $ DeployWar.run(HostConfig.java:1853)     在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)     在java.util.concurrent.FutureTask.run(FutureTask.java:266)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)     在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)     在java.lang.Thread.run(Thread.java:745)

0 个答案:

没有答案