问题描述
java.lang.RuntimeException: init log4j logger errorat com.longshine.indigo.component.logging.impl.Log4jAppender.initLogger(Unknown Source)at com.longshine.indigo.component.logging.LoggerFactory.setLoggerAppenderClassName(Unknown Source)at com.longshine.indigo.component.logging.config.LoggerConfigHandler.processAppender(Unknown Source)at com.longshine.indigo.component.logging.config.LoggerConfigHandler.execute(Unknown Source)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.NoClassDefFoundErrorat org.apache.log4j.Logger.getLogger(Logger.java:85)... 60 more
解决方案
引用Caused by: java.lang.NoClassDefFoundError 原因是没有找到类,查看下Jar包路径正确不
解决方案二:
没有添加 lo4j-XX.jar