[
http://jira.codehaus.org/browse/MNG-4794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234604#action_234604
]
Jochen Stiepel commented on MNG-4794:
-------------------------------------
I found the cause of this problem!
On the SLES Server there were two JDK's installed. The Sun JDK and an IBM JDK.
JAVA_HOME was pointing to the IBM-JDK and in the PATH the Sun JDK was first:
output of: mvn -version
Apache Maven 3.0-beta-3 (r990787; 2010-08-30 14:44:03+0200)
Java version: 1.6.0
Java home: /usr/lib/jvm/java-1_6_0-ibm-1.6.0/jre
Default locale: de_DE, platform encoding: ISO-8859-1
OS name: "linux" version: "2.6.27.48-0.6-pae" arch: "x86" Family: "unix"
output of (Sun JDK): java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)
output of (IBM-JDK): /usr/lib/jvm/java-1_6_0-ibm-1.6.0/jre/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260sr8-20100409_01(SR8))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32
jvmxi3260sr8-20100401_55940 (JIT enabled, AOT enabled)
J9VM - 20100401_055940
JIT - r9_20100401_15339
GC - 20100308_AA)
JCL - 20100408_01
Then I changed the JAVA_HOME to the Sun-JDK and it works. Afterwards I changed
the JAVA_HOME and the PATH to the IBM-JDK and I'm getting the exception again.
> 'org.apache.maven.plugins:maven-install-plugin:2.3.1'. A required class is
> missing: org.codehaus.plexus.digest.Digester
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-4794
> URL: http://jira.codehaus.org/browse/MNG-4794
> Project: Maven 2 & 3
> Issue Type: Bug
> Affects Versions: 3.0-beta-3
> Environment: Linux 2.6.27.48-0.6-pae #1 SMP 686 athlon i386 GNU/Linux
> - SUSE Linux Enterprise Server 11.
> Java 1.6.0_21 Sun
> Reporter: Jochen Stiepel
> Assignee: Benjamin Bentmann
> Priority: Blocker
>
> This error doesn't show up on Windows with maven 3 beta-3, Java 1.6.0_21 !!!
> This error also doesn't show up with maven 3 beta-2 on Linux and Windows,
> both Java 1.6.0_21.
> I switched from maven 3 beta-2 to beta-3 and got this error.
> I deleted the complete .m2/repository/ but nothing changed.
> Only on Linux with maven 3 beta-3 I can reproduce this error:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install)
> on project nivadis: Execution default-install of goal
> org.apache.maven.plugins:maven-install-plugin:2.3.1:install failed: Unable to
> load the mojo 'install' in the plugin
> 'org.apache.maven.plugins:maven-install-plugin:2.3.1'. A required class is
> missing: org.codehaus.plexus.digest.Digester
> -----------------------------------------------------
> realm = plugin>org.apache.maven.plugins:maven-install-plugin:2.3.1
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> urls[0] =
> file:/home/vbs/.m2/repository/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.jar
> urls[1] =
> file:/home/vbs/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> Number of foreign imports: 4
> import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from
> realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException
> from realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from
> realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm
> ClassRealm[plexus.core, parent: null]]
> realm = maven.api
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> Number of foreign imports: 21
> import: Entry[import org.sonatype.aether from realm ClassRealm[plexus.core,
> parent: null]]
> import: Entry[import org.codehaus.plexus.personality from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.logging from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.lifecycle from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.context from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.container from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.configuration from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.component from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.classworlds from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.PlexusContainerException from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.PlexusContainer from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.PlexusConstants from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DuplicateChildContainerException
> from realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from
> realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.ComponentRegistry from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.classworlds from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.apache.maven from realm ClassRealm[plexus.core,
> parent: null]]
> -----------------------------------------------------
> -> [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
--
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