{"id":1903,"date":"2022-11-28T22:05:12","date_gmt":"2022-11-28T14:05:12","guid":{"rendered":"https:\/\/qaqaq.top\/?p=1903"},"modified":"2022-11-28T22:05:12","modified_gmt":"2022-11-28T14:05:12","slug":"java-lang-noclassdeffounderror-org-apache-commons-logging-logfactory%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/qaqaq.top\/?p=1903","title":{"rendered":"java.lang.NoClassDefFoundError: org\/apache\/commons\/logging\/LogFactory\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n<p>java.lang.NoClassDefFoundError: org\/apache\/commons\/logging\/LogFactory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5bfc\u5165commons-logging.jar\u5305\r\n\r\n\u5982\u679c\u7528\u7684\u662fmaven\u76f4\u63a5\u7528\uff1a\r\n\r\n&lt;dependency>\r\n        &lt;groupId>commons-logging&lt;\/groupId>\r\n        &lt;artifactId>commons-logging&lt;\/artifactId>\r\n        &lt;version>1.2&lt;\/version>\r\n&lt;\/dependency>\u5373\u53ef\r\n\u62a5\u9519\uff1a\r\n\r\nException in thread \"main\" java.lang.NoClassDefFoundError: org\/apache\/commons\/logging\/LogFactory\r\n    at org.apache.commons.beanutils.ConvertUtilsBean.&lt;init>(ConvertUtilsBean.java:154)\r\n    at org.apache.commons.beanutils.BeanUtilsBean.&lt;init>(BeanUtilsBean.java:113)\r\n    at org.apache.shiro.config.ReflectionBuilder.&lt;init>(ReflectionBuilder.java:126)\r\n    at org.apache.shiro.config.ReflectionBuilder.&lt;init>(ReflectionBuilder.java:120)\r\n    at org.apache.shiro.config.IniSecurityManagerFactory.&lt;init>(IniSecurityManagerFactory.java:64)\r\n    at org.apache.shiro.config.IniSecurityManagerFactory.&lt;init>(IniSecurityManagerFactory.java:68)\r\n    at org.apache.shiro.config.IniSecurityManagerFactory.&lt;init>(IniSecurityManagerFactory.java:73)\r\n    at com.shiro.test.test.main(test.java:21)\r\nCaused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory\r\n    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\r\n    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n    at java.security.AccessController.doPrivileged(Native Method)\r\n    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)\r\n    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)\r\n    ... 8 more\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>java.lang.NoClassDefFoundError: org\/apache\/commons\/logg [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[48],"class_list":["post-1903","post","type-post","status-publish","format-standard","hentry","category-jdbc-","tag-jdbc"],"_links":{"self":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/1903"}],"collection":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1903"}],"version-history":[{"count":1,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/1903\/revisions"}],"predecessor-version":[{"id":1904,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/1903\/revisions\/1904"}],"wp:attachment":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}