java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

JBoss Issue Tracker | Jan Kasztura | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cxf quickstarts that no longer work: * rest * secure-rest * (secure-soap ENTESB-3349) 1. After building and deploying I could not access http://localhost:8181/cxf or other addresses in Readme. 2. After changing POM skipTests configuration, building and deploying tried to run test with mvn -Ptest and i got this error: {code} ------------------------------------------------------- T E S T S ------------------------------------------------------- Running io.fabric8.quickstarts.rest.secure.CrmSecureTest Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.144 sec <<< FAILURE! - in io.fabric8.quickstarts.rest.secure.CrmSecureTest getCustomerTest(io.fabric8.quickstarts.rest.secure.CrmSecureTest) Time elapsed: 0.011 sec <<< ERROR! java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:66) at io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest(CrmSecureTest.java:75) getProductOrderTest(io.fabric8.quickstarts.rest.secure.CrmSecureTest) Time elapsed: 0 sec <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient at io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest(CrmSecureTest.java:75) putCustomerTest(io.fabric8.quickstarts.rest.secure.CrmSecureTest) Time elapsed: 0 sec <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient at io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest(CrmSecureTest.java:75) postCustomerTest(io.fabric8.quickstarts.rest.secure.CrmSecureTest) Time elapsed: 0.001 sec <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient at io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest(CrmSecureTest.java:75) Results : Tests in error: CrmSecureTest.beforeTest:75 » NoClassDefFound org/apache/commons/logging/LogFa... CrmSecureTest.beforeTest:75 NoClassDefFound Could not initialize class org.apa... CrmSecureTest.beforeTest:75 NoClassDefFound Could not initialize class org.apa... CrmSecureTest.beforeTest:75 NoClassDefFound Could not initialize class org.apa... Tests run: 4, Failures: 0, Errors: 4, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ {code} rest and secure-rest worked in ER3

    JBoss Issue Tracker | 1 year ago | Jan Kasztura
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  2. 0

    Apache HttpClient throws a NoClassDefFoundError

    Stack Overflow | 7 years ago | rauch
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  3. 0

    Apache HttpClient throws a NoClassDefFoundError

    dolinked.com | 2 years ago
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    springside 4.1.0-SNAPSHOT版本springside-extension模块缺少commons-logging依赖

    GitHub | 4 years ago | sxyx2008
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

  1. batwalrus76 3 times, last 2 weeks ago
  2. rsprangemeijer 1 times, last 4 weeks ago
  3. andyglick 2 times, last 1 month ago
  4. bamboomy 1 times, last 2 months ago
  5. Handemelindo 4 times, last 4 months ago
9 more registered users
86 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    org/apache/commons/logging/LogFactory

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. HttpClient
    HttpClient.<clinit>
    1. org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:66)
    1 frame
  4. io.fabric8.quickstarts
    CrmSecureTest.beforeTest
    1. io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest(CrmSecureTest.java:75)
    1 frame