java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient

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: Could not initialize class org.apache.commons.httpclient.HttpClient
  2. 0

    db:: 3.89::User-specified log class 'org.apache.commons.logging.impl.Lo 33

    hivmr.com | 9 months ago
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
  3. 0

    db:: 4.42::J9 org.apache.commons.httpclient 98

    hivmr.com | 9 months ago
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 4.08::org.apache.commons.collections_3.1.jar af

    hivmr.com | 9 months ago
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient

    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

      Could not initialize class org.apache.commons.httpclient.HttpClient

      at io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest()
    2. io.fabric8.quickstarts
      CrmSecureTest.beforeTest
      1. io.fabric8.quickstarts.rest.secure.CrmSecureTest.beforeTest(CrmSecureTest.java:75)
      1 frame