java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Jan Kasztura,
  • GitHub comment 53#125752932
    via GitHub by sectioneight
    ,
  • GitHub comment 158#216311277
    via GitHub by bardware
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    80 more bugmates