zoukankan      html  css  js  c++  java
  • linux环境上报异常java.lang.NoSuchMethodError

    23-Apr-2019 18:11:35.545 INFO [http-nio-10052-exec-10] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
    23-Apr-2019 18:11:35.587 INFO [http-nio-10052-exec-10] org.apache.catalina.core.ApplicationContext.log [commontemplate] searched config: conf/commontemplate.properties
    23-Apr-2019 18:11:35.595 INFO [http-nio-10052-exec-10] org.apache.catalina.core.ApplicationContext.log [commontemplate] Template engine initializing...
    23-Apr-2019 18:11:35.953 INFO [http-nio-10052-exec-10] org.apache.catalina.core.ApplicationContext.log [commontemplate] Template engine initialized in 358 ms
    23-Apr-2019 18:11:35.955 INFO [http-nio-10052-exec-10] org.apache.catalina.core.ApplicationContext.log Set web app root system property: 'xkzd.root' = [/opt/jdlserver_prd/app-school/xkzd/]
    23-Apr-2019 18:11:35.958 INFO [http-nio-10052-exec-10] org.apache.catalina.core.ApplicationContext.log Initializing log4j from [/opt/jdlserver_prd/app-school/xkzd/WEB-INF/log4j.properties]
    23-Apr-2019 18:11:35.980 SEVERE [http-nio-10052-exec-10] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class conf.AppContextLoaderListener java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.toByteArray(Ljava/io/InputStream;J)[B at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1764) at conf.CheckAppStartCerticateValid.doCheck(Unknown Source) at conf.CheckAppStartCerticateValid.check(Unknown Source) at conf.AppContextLoaderListener.contextInitialized(Unknown Source) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1293) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:673) at org.apache.catalina.manager.HTMLManagerSer

    以上报错是由于jar冲突的问题,检查一下报错的这个jar包是否还有与它同路径,同包名下的类,但是不在同一个jar里,需要检测下用到哪个jar,备份另一个删掉试试

  • 相关阅读:
    线段树优化建图 && CF-786B.Legacy(优化建图,dijkstra)
    构建高性能JavaScript应用
    关于互联网应用前端架构的一些思考
    Router模块
    View模块
    Backbone源码解析系列
    Model模块
    Events模块
    Backbone源码风格
    jQuery选择器总结
  • 原文地址:https://www.cnblogs.com/houzs/p/10763599.html
Copyright © 2011-2022 走看看