Java_异常_02_java.lang.NoClassDefFoundError: org/apache/log4j/Level

总结:解析Json时,除了要导入json-lib-2.2-jdk15.jar外,还要导入:

commons-beanutils.jar,

commons-httpclient.jar,

commons-lang.jar,

ezmorph.jar,

morph-1.0.1.jar

1.异常1信息:

Failed to instantiate SLF4J LoggerFactory Reported exception: java.lang.NoClassDefFoundError: org/apache/log4j/Level

解读:找不到log4j的jar包

添加了log4j的jar包之后,又出现异常2.

2.异常2信息:

java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher

解读:找不到 ezmorph.jar,morph-1.0.1.jar。添加之

时间: 2024-12-29 17:39:17

Java_异常_02_java.lang.NoClassDefFoundError: org/apache/log4j/Level的相关文章

解决java.lang.NoClassDefFoundError: org/apache/log4j/Level

现象: java.lang.NoClassDefFoundError: org/apache/log4j/Level at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112

java.lang.NoClassDefFoundError: org/apache/log4j/Level

今天在运行Maven工程时突然报错,说是无法实例化log4j--jar包,由于忙着解决问题,没有将错误信息拷贝下来,只能口 述了 刚开始出现该问题的时候以为是没有加载jar包,于是就在maven包中查看了一下是否有该jar包,发现有该包,所以重新 clean了项目,但是运行还是报错,同过个中途经查看了原因,当时有个博客讲诉,出现该问题还有一个可能的原因就是 网络问题,没有加载到jar包,需要重新download,所以就将maven需要download的路径删掉了,重新下载,重新右键项 目,run

Maven项目java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger报错

本文转载自:http://www.javaweb1024.com/info/894.jspx maven管理的项目,里面已经引入了log4j的包 maven引入如下: <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> <scope>compile</scope>

Java学习-4 Quartz线程无法随Tomcat停止的处理(Exception in thread &quot;DefaultQuartzScheduler_Worker-8&quot; java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation)

症状:Tomcat停止后,提示Quartz一堆错,总之就是无法停止,然后tomcat的进程还有残留,要手动再停止一下,不然无法再次运行 (Exception in thread "DefaultQuartzScheduler_Worker-8" java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation) 从_Worker-1~10 一开始看提示还以为是log4j的问题,把版本依次都升高了,还是无效

Kafka + Flink 出现异常 java.lang.NoClassDefFoundError: org/apache/flink/streaming/util/serialization/DeserializationSchema

我在 IDEA 环境中调试 Kafka+Flink 自己编写的例子时 代码编译都是通过的,但是进行Debug调试时,出现如下异常: java.lang.NoClassDefFoundError: org/apache/flink/streaming/util/serialization/DeserializationSchema at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetD

atitit。解决 No suitable Log constructor。。NoClassDefFoundError: org/apache/log4j/Category 找不到类的

atitit.解决 No suitable Log constructor..NoClassDefFoundError: org/apache/log4j/Category 找不到类的 1. 深的层次原因::ClassLoader问题 1 2. 排除流程 2 3. 解决之道:: 2 4. parent-first代理机制还是child-first代理机制 2 4.1. Thread Context ClassLoader的出现 2 5. 参考 3 现象: org.apache.commons.l

spring异常记录-----java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils

今天在练习怎样SSH中进行单元測试的时候出现下列异常: SEVERE: Exception starting filter Struts2 java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:211

异常记录与处理 - java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

错误信息: 学习Spring,执行简单的单元测试程序时,产生以下异常: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160) at org.springframework.context.su

mybatis + log4j2 问题 java.lang.NoClassDefFoundError: org/apache/logging/log4j/spi/AbstractLoggerWrapper

root cause java.lang.NoClassDefFoundError: org/apache/logging/log4j/spi/AbstractLoggerWrapper 网上资料比较少,最后查到是mybatis 3.2.7的bug,升级到3.3.0就好了 详见:https://github.com/mybatis/mybatis-3/issues/234  emacarron modified the milestone: 3.2.8, 3.3.0 on 10 Oct 2014