java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEnt ity

MuleSoft JIRA | Mike Carr | 9 years 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

    From a clean machine (no galaxy components installed) I created a simple maven project (pom attached), mvn clean install first reported that it was missing abdera-client: Missing: ---------- 1) org.apache.abdera:abdera-client:jar:0.4.0-incubating I manually installed that artifact to maven repository: C:\code\test-galaxy-plugin>mvn install:install-file -DgroupId=org.apache.abdera -DartifactId=abdera-client -Dversion=0.4.0-incubating -Dpackaging=jar -Dfile=C: \Downloads\galaxy-integration-distribution-1.0-beta-3\abdera-client-0.4.0-incuba ting.jar I then receive an NoClassDefFoundError exception: [INFO] [galaxypublish:execute {execution: publish-artifacts}] [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org/apache/commons/httpclient/methods/RequestEntity [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEnt ity at org.mule.galaxy.maven.publish.PublishMojo.execute(PublishMojo.java:18 9) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12 seconds [INFO] Finished at: Wed Apr 30 07:34:12 PDT 2008 [INFO] Final Memory: 10M/19M [INFO] ------------------------------------------------------------------------ On a previously build with a machine that was built from the galaxy trunk I received another NoClassDefFoundError exception about commons-logging. (see http://forums.muleforge.org/thread.jspa?threadID=45&tstart=0) mvn dependency:list [INFO] [dependency:list] [INFO] [INFO] The following files have been resolved: [INFO] junit:junit:jar:3.8.1:test

    MuleSoft JIRA | 9 years ago | Mike Carr
    java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEnt ity
  2. 0

    From a clean machine (no galaxy components installed) I created a simple maven project (pom attached), mvn clean install first reported that it was missing abdera-client: Missing: ---------- 1) org.apache.abdera:abdera-client:jar:0.4.0-incubating I manually installed that artifact to maven repository: C:\code\test-galaxy-plugin>mvn install:install-file -DgroupId=org.apache.abdera -DartifactId=abdera-client -Dversion=0.4.0-incubating -Dpackaging=jar -Dfile=C: \Downloads\galaxy-integration-distribution-1.0-beta-3\abdera-client-0.4.0-incuba ting.jar I then receive an NoClassDefFoundError exception: [INFO] [galaxypublish:execute {execution: publish-artifacts}] [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org/apache/commons/httpclient/methods/RequestEntity [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEnt ity at org.mule.galaxy.maven.publish.PublishMojo.execute(PublishMojo.java:18 9) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12 seconds [INFO] Finished at: Wed Apr 30 07:34:12 PDT 2008 [INFO] Final Memory: 10M/19M [INFO] ------------------------------------------------------------------------ On a previously build with a machine that was built from the galaxy trunk I received another NoClassDefFoundError exception about commons-logging. (see http://forums.muleforge.org/thread.jspa?threadID=45&tstart=0) mvn dependency:list [INFO] [dependency:list] [INFO] [INFO] The following files have been resolved: [INFO] junit:junit:jar:3.8.1:test

    MuleSoft JIRA | 9 years ago | Mike Carr
    java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEnt ity

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/commons/httpclient/methods/RequestEnt ity

      at org.mule.galaxy.maven.publish.PublishMojo.execute()
    2. org.mule.galaxy
      PublishMojo.execute
      1. org.mule.galaxy.maven.publish.PublishMojo.execute(PublishMojo.java:189)
      1 frame
    3. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      1 frame
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      8 frames
    5. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames