maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (DOXIA-432) doxia-maven-plugin:1.2 fails with NoClassDefFoundError
Date Sun, 29 May 2011 17:18:22 GMT
doxia-maven-plugin:1.2 fails with NoClassDefFoundError
------------------------------------------------------

                 Key: DOXIA-432
                 URL: http://jira.codehaus.org/browse/DOXIA-432
             Project: Maven Doxia
          Issue Type: Bug
          Components: Maven plugin
    Affects Versions: 1.2
         Environment: mac:maui km$ mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.6.0_22, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.5.8", arch: "x86_64", family: "mac"

This fails also on Ubunutu with the same Maven version.
            Reporter: Karl Heinz Marbaise


I'm trying to use the maven-doxia-plugin to generate different formats and got the following
failure if i use maven-doxia-plugin 1.2..if i use version 1.1.4 instead it does not produce
this failure.
{code}
[INFO] 
[INFO] --- doxia-maven-plugin:1.2:render-books (default) @ maui ---
May 29, 2011 7:12:52 PM org.sonatype.guice.bean.reflect.NamedClass
WARNING: Error injecting: org.apache.maven.doxia.tools.DefaultSiteTool
java.lang.NoClassDefFoundError: org/codehaus/plexus/util/interpolation/ValueSource
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getDeclaredConstructors(Class.java:1836)
        at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)
        at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)
        at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:628)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:835)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:769)
        at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:254)
        at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:205)
        at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:843)
        at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:957)
        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:990)
        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:951)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
        at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:221)
        at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:49)
        at org.sonatype.guice.bean.inject.BeanInjector.doInjection(BeanInjector.java:105)
        at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:66)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:120)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.util.interpolation.ValueSource
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
        ... 70 more
May 29, 2011 7:12:52 PM org.sonatype.guice.bean.reflect.LoadedClass
WARNING: Error injecting: org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo
com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting: org.apache.maven.doxia.tools.DefaultSiteTool
  at ClassRealm[plugin>org.apache.maven.doxia:doxia-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader@6d6f0472]
  at ClassRealm[plugin>org.apache.maven.doxia:doxia-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader@6d6f0472]
  while locating org.apache.maven.doxia.tools.SiteTool
  while locating org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo

1 error
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:977)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/interpolation/ValueSource
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getDeclaredConstructors(Class.java:1836)
        at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)
        at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)
        at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:628)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:835)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:769)
        at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:254)
        at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:205)
        at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:843)
        at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:957)
        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:990)
        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:951)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
        at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:221)
        at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:49)
        at org.sonatype.guice.bean.inject.BeanInjector.doInjection(BeanInjector.java:105)
        at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:66)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:120)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1021)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
        ... 33 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.util.interpolation.ValueSource
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
        ... 70 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.741s
[INFO] Finished at: Sun May 29 19:12:52 CEST 2011
[INFO] Final Memory: 22M/528M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.doxia:doxia-maven-plugin:1.2:render-books
(default) on project maui: Execution default of goal org.apache.maven.doxia:doxia-maven-plugin:1.2:render-books
failed: Unable to load the mojo 'render-books' in the plugin 'org.apache.maven.doxia:doxia-maven-plugin:1.2'.
A required class is missing: org/codehaus/plexus/util/interpolation/ValueSource
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.doxia:doxia-maven-plugin:1.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-maven-plugin/1.2/doxia-maven-plugin-1.2.jar
[ERROR] urls[1] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-book/1.2/doxia-book-1.2.jar
[ERROR] urls[2] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar
[ERROR] urls[3] = file:/Users/km/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[4] = file:/Users/km/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
[ERROR] urls[5] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-core/1.2/doxia-core-1.2.jar
[ERROR] urls[6] = file:/Users/km/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[7] = file:/Users/km/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
[ERROR] urls[8] = file:/Users/km/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
[ERROR] urls[9] = file:/Users/km/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
[ERROR] urls[10] = file:/Users/km/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[11] = file:/Users/km/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[12] = file:/Users/km/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
[ERROR] urls[13] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.2/doxia-logging-api-1.2.jar
[ERROR] urls[14] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar
[ERROR] urls[15] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-module-docbook-simple/1.2/doxia-module-docbook-simple-1.2.jar
[ERROR] urls[16] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-module-itext/1.2/doxia-module-itext-1.2.jar
[ERROR] urls[17] = file:/Users/km/.m2/repository/com/lowagie/itext/1.4/itext-1.4.jar
[ERROR] urls[18] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-module-latex/1.2/doxia-module-latex-1.2.jar
[ERROR] urls[19] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
[ERROR] urls[20] = file:/Users/km/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
[ERROR] urls[21] = file:/Users/km/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
[ERROR] urls[22] = file:/Users/km/.m2/repository/org/apache/maven/shared/maven-doxia-tools/1.0.1/maven-doxia-tools-1.0.1.jar
[ERROR] urls[23] = file:/Users/km/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
[ERROR] urls[24] = file:/Users/km/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.4/maven-reporting-api-2.0.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>com.soebes.maven.guide:maui:0.1-SNAPSHOT,
parent: ClassRealm[maven.api, parent: null]]]
[ERROR] 
[ERROR] -----------------------------------------------------: org.codehaus.plexus.util.interpolation.ValueSource
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
{code}
The whole code incl. the approriate pom can be found on https://github.com/khmarbaise/maui
(change the version of maven-doxia to 1.2).


-- 
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

        

Mime
View raw message