java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
程序员文章站
2022-03-08 16:13:34
...
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:153)
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:217)
at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:88)
at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:58)
at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:137)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:84)
at test.Test.main(Test.java:11)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 8 more
此异常为缺少commons-logging-1.1.3.jar,去官网 http://commons.apache.org/proper/commons-logging/download_logging.cgi 下载后放进去就可以了
推荐阅读
-
Android Caused by: java.lang.ClassNotFoundException解决办法
-
Android Caused by: java.lang.ClassNotFoundException解决办法
-
Caused by: java.lang.ClassNotFoundException: org.junit.platform.launcher.TestExecutionListener
-
Android <java.lang.ClassNotFoundException:Didn‘t find class ‘XXX‘ on path:DexPathList> 解决
-
idea启动项目报错Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
-
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory 异常错误
-
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
-
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
-
ClassNotFoundException:org.apache.commons.logging.LogFactory
-
解决:ClassNotFoundException:org.apache.commons.logging.LogFactory