You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Yoway Buorn (JIRA)" <ji...@codehaus.org> on 2005/04/26 20:43:46 UTC

[jira] Commented: (MAVEN-1498) java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

     [ http://jira.codehaus.org/browse/MAVEN-1498?page=comments#action_38171 ]
     
Yoway Buorn commented on MAVEN-1498:
------------------------------------

When running this JRE on Windows 2000:

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

I received the same error.  However, when I pointed JAVA_HOME to this one:

java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

No more error.

> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> ---------------------------------------------------------------------
>
>          Key: MAVEN-1498
>          URL: http://jira.codehaus.org/browse/MAVEN-1498
>      Project: maven
>         Type: Bug
>     Versions: 1.0
>  Environment: OSX 10.3.6
> java version "1.4.2_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.3)
> Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)
>     Reporter: Boris Kraft

>
>
> I have installed maven on OSX but trying to use it on a real project fails with the following message:
> Attempting to download commons-jelly-1.0-beta-4.jar.
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> Details:
> I have installed maven on OSX 10.3 by following the description here:
> http://homepage.mac.com/melowe/B1485844447/C633227215/E1653984186/
> and also from the maven installation docs (creating the repository using install_repo.sh)
> I have used cvs to check out the maven source from the repository and try to run maven on itself. Originally I used maven on the jackrabbit source, with the same error:
> ----- 8< -------------
> % maven -e jar
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> Attempting to download commons-jelly-1.0-beta-4.jar.
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>         at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:100)
>         at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:356)
>         at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:287)
>         at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:181)
>         at org.apache.maven.verifier.DependencyVerifier.getRemoteArtifact(DependencyVerifier.java:326)
>         at org.apache.maven.verifier.DependencyVerifier.getDependencies(DependencyVerifier.java:255)
>         at org.apache.maven.verifier.DependencyVerifier.satisfyDependencies(DependencyVerifier.java:171)
>         at org.apache.maven.verifier.DependencyVerifier.verify(DependencyVerifier.java:97)
>         at org.apache.maven.project.Project.verifyDependencies(Project.java:1365)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:510)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1215)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> ----- 8< -------------
> Maven -x gives me:
> ----- 8< -------------
> % maven -X
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> Initializing Plugins!
> Set plugin source directory to /Developer/Java/Maven/plugins
> Set unpacked plugin directory to /Users/kraft/Library/Maven/cache
> Set user plugin directory to /Users/kraft/Library/Maven/plugins
> Loading plugin cache
> Now mapping cached plugins
> Loading plugin 'maven-scm-plugin-1.4'
> Loading plugin 'maven-cruisecontrol-plugin-1.4'
> Loading plugin 'maven-multichanges-plugin-1.1'
> Loading plugin 'maven-jdepend-plugin-1.5'
> Loading plugin 'maven-ear-plugin-1.5'
> Loading plugin 'maven-pom-plugin-1.4.1'
> Loading plugin 'maven-jira-plugin-1.1.1'
> Loading plugin 'maven-jellydoc-plugin-1.3'
> Loading plugin 'maven-war-plugin-1.6'
> Loading plugin 'maven-jboss-plugin-1.5'
> Loading plugin 'maven-checkstyle-plugin-2.4.1'
> Loading plugin 'maven-faq-plugin-1.4'
> Loading plugin 'maven-ant-plugin-1.7'
> Loading plugin 'maven-tasklist-plugin-2.3'
> Loading plugin 'maven-idea-plugin-1.5'
> Loading plugin 'maven-linkcheck-plugin-1.3.2'
> Loading plugin 'maven-changes-plugin-1.5'
> Loading plugin 'maven-javadoc-plugin-1.6.1'
> Loading plugin 'maven-junit-report-plugin-1.5'
> Loading plugin 'maven-jcoverage-plugin-1.0.7'
> Loading plugin 'maven-plugin-plugin-1.5.1'
> Loading plugin 'maven-changelog-plugin-1.7.1'
> Loading plugin 'maven-jxr-plugin-1.4.1'
> Loading plugin 'maven-release-plugin-1.4'
> Loading plugin 'maven-ashkelon-plugin-1.2'
> Loading plugin 'maven-announcement-plugin-1.2'
> Loading plugin 'maven-xdoc-plugin-1.8'
> Loading plugin 'maven-shell-plugin-1.1'
> Loading plugin 'maven-eclipse-plugin-1.7'
> Loading plugin 'maven-rar-plugin-1.0'
> Loading plugin 'maven-j2ee-plugin-1.5'
> Loading plugin 'maven-file-activity-plugin-1.5'
> Loading plugin 'maven-clover-plugin-1.5'
> Loading plugin 'maven-uberjar-plugin-1.2'
> Loading plugin 'maven-dashboard-plugin-1.3'
> Loading plugin 'maven-jar-plugin-1.6'
> Loading plugin 'maven-simian-plugin-1.4'
> Loading plugin 'maven-tjdo-plugin-1.0.0'
> Loading plugin 'maven-ejb-plugin-1.5'
> Loading plugin 'maven-developer-activity-plugin-1.5'
> Loading plugin 'maven-abbot-plugin-1.0'
> Loading plugin 'maven-nsis-plugin-1.1'
> Loading plugin 'maven-multiproject-plugin-1.3.1'
> Loading plugin 'maven-license-plugin-1.2'
> Loading plugin 'maven-jdiff-plugin-1.4'
> Loading plugin 'maven-dist-plugin-1.6'
> Loading plugin 'maven-pmd-plugin-1.5'
> Loading plugin 'maven-repository-plugin-1.2'
> Loading plugin 'maven-jbuilder-plugin-1.5'
> Loading plugin 'maven-console-plugin-1.1'
> Loading plugin 'maven-webserver-plugin-2.0'
> Loading plugin 'maven-aspectwerkz-plugin-1.2'
> Loading plugin 'maven-test-plugin-1.6.2'
> Loading plugin 'maven-jetty-plugin-1.1'
> Loading plugin 'maven-docbook-plugin-1.2'
> Loading plugin 'maven-latka-plugin-1.4.1'
> Loading plugin 'maven-aspectj-plugin-3.1.1'
> Loading plugin 'maven-native-plugin-1.1'
> Loading plugin 'maven-site-plugin-1.5.1'
> Loading plugin 'maven-gump-plugin-1.4'
> Loading plugin 'maven-appserver-plugin-2.0'
> Loading plugin 'maven-java-plugin-1.4'
> Loading plugin 'maven-pdf-plugin-2.1'
> Loading plugin 'maven-jdee-plugin-1.1'
> Loading plugin 'maven-jalopy-plugin-1.3'
> Loading plugin 'maven-jnlp-plugin-1.4'
> Loading plugin 'maven-html2xdoc-plugin-1.3'
> Loading plugin 'maven-jdeveloper-plugin-1.4'
> Loading plugin 'maven-junit-doclet-plugin-1.2'
> Loading plugin 'maven-hibernate-plugin-1.1'
> Loading plugin 'maven-wizard-plugin-1.1'
> Loading plugin 'maven-artifact-plugin-1.4'
> Loading plugin 'maven-javacc-plugin-1.1'
> Loading plugin 'maven-antlr-plugin-1.2.1'
> Loading plugin 'maven-struts-plugin-1.3'
> Loading plugin 'maven-clean-plugin-1.3'
> Loading plugin 'maven-castor-plugin-1.2'
> Loading plugin 'maven-latex-plugin-1.4.1'
> Loading plugin 'maven-genapp-plugin-2.2'
> Loading plugin 'maven-caller-plugin-1.1'
> Loading plugin 'maven-vdoclet-plugin-1.2'
> Now loading uncached plugins
> Finished initializing Plugins!
> Using userBuildPropertiesFile: /Users/kraft/build.properties
> Using projectPropertiesFile: /Users/kraft/testmaven/maven/project.properties
> Using projectBuildPropertiesFile: /Users/kraft/testmaven/maven/build.properties
> Verifying dependencies for maven:maven
> Getting failed dependencies: [org.apache.maven.repository.GenericArtifact@fde0d5, org.apache.maven.repository.GenericArtifact@b3d1e5, org.apache.maven.repository.GenericArtifact@993730, org.apache.maven.repository.GenericArtifact@f64f64, org.apache.maven.repository.GenericArtifact@d66725, org.apache.maven.repository.GenericArtifact@de5f5, org.apache.maven.repository.GenericArtifact@74714c, org.apache.maven.repository.GenericArtifact@ba4539, org.apache.maven.repository.GenericArtifact@16c054, org.apache.maven.repository.GenericArtifact@ad00b2]
> Attempting to download commons-jelly-1.0-beta-4.jar.
> Getting URL: http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-1.0-beta-4.jar
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>         at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:100)
>         at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:356)
>         at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:287)
>         at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:181)
>         at org.apache.maven.verifier.DependencyVerifier.getRemoteArtifact(DependencyVerifier.java:326)
>         at org.apache.maven.verifier.DependencyVerifier.getDependencies(DependencyVerifier.java:255)
>         at org.apache.maven.verifier.DependencyVerifier.satisfyDependencies(DependencyVerifier.java:171)
>         at org.apache.maven.verifier.DependencyVerifier.verify(DependencyVerifier.java:97)
>         at org.apache.maven.project.Project.verifyDependencies(Project.java:1365)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:510)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1215)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> You have encountered an unknown error running Maven. Please help us to correct 
> this problem by following these simple steps:
> - read the Maven FAQ at http://maven.apache.org/faq.html
> - run the same command again with the '-e' parameter, eg maven -e jar
> - search the maven-user archives for the error at
> http://nagoya.apache.org/eyebrowse/SummarizeList?listName=users@maven.apache.org
> - post the output of maven -e to JIRA at
> http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up first)
> - run 'maven --info' and post the output as the environment to the bug above
> Final Memory: 1M/3M
> Total time: 5 seconds
> Finished at: Wed Nov 10 09:28:50 CET 2004
> ----- 8< -------------
> I have tried onder a different user account with the same results.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org