Tring to solve http://jira.codehaus.org/browse/MWEBSTART-29

I decided to bump plexus-utils to 1.4.1 in the webstart plugin.

and now I get this strange NoClassDefFoundError, as if in dependency hell....

Tried with 2.0.5 and 2.0.6

Nowhere do I see plexus 1.4.1 appear in the surefire test classpath.
Wasn't that supposed to be fixed by maven 2.0.6 ?

[INFO] [surefire:test]
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.3:runtime
(selected for runtime)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.3:runtime
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:runtime
(selected for runtime)
[DEBUG]       commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runtime)
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
(selected for runtime)
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.2:runtime
(removed - nearer found: 1.1)
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire-providers::2.3 for project:
null:surefire-junit:jar:2.3 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3
for project: null:surefire-providers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org.apache.maven.surefire:surefire:pom:2.3 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG]   org.apache.maven.surefire:surefire-junit:jar:2.3 (selected for null)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.3:compile
(selected for compile)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:compile
(selected for compile)
[DEBUG]       commons-lang:commons-lang:jar:2.1:compile (selected for compile)
[DEBUG]     junit:junit:jar:3.8.1:compile (selected for compile)
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\et4642\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\et4642\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\surefire\surefire-junit\2.3\surefire-junit-2.3.jar
[DEBUG] Test Classpath :
[DEBUG]   C:\b2bdev\projects\webstart-maven-plugin\plugin\target\classes
[DEBUG]   C:\b2bdev\projects\webstart-maven-plugin\plugin\target\test-classes
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\mojo\webstart-jarsigner-api\1.0-alpha-2-SNAPSHOT\webstart-jarsigner-api-1.0-alpha-2-SNAPSHOT.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-artifact\2.0.1\maven-artifact-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-error-diagnostics\2.0.1\maven-error-diagnostics-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-settings\2.0.1\maven-settings-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\plugins\maven-plugin-plugin\2.3\maven-plugin-plugin-2.3.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\reporting\maven-reporting-impl\2.0\maven-reporting-impl-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-project\2.0.1\maven-project-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.1\maven-jar-plugin-2.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-9\plexus-container-default-1.0-alpha-9.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\oro\oro\2.0.7\oro-2.0.7.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\doxia\doxia-core\1.0-alpha-4\doxia-core-1.0-alpha-4.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-embedder\2.0\maven-embedder-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-utils\1.4.1\plexus-utils-1.4.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\mojo\keytool-maven-plugin\1.0-beta-1\keytool-maven-plugin-1.0-beta-1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-repository-metadata\2.0\maven-repository-metadata-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-parameter-documenter\2.0.1\maven-plugin-parameter-documenter-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\shared\maven-plugin-testing-harness\1.0-beta-1\maven-plugin-testing-harness-1.0-beta-1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\com\jcraft\jsch\0.1.23\jsch-0.1.23.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\commons-validator\commons-validator\1.1.4\commons-validator-1.1.4.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-descriptor\2.0.1\maven-plugin-descriptor-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-api-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-registry\2.0\maven-plugin-registry-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-archiver\2.2\maven-archiver-2.2.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\bsh\bsh\1.3.0\bsh-1.3.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-tools-api\2.1\maven-plugin-tools-api-2.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-interactivity-api\1.0-alpha-4\plexus-interactivity-api-1.0-alpha-4.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\wagon\wagon-http-lightweight\1.0-alpha-5\wagon-http-lightweight-1.0-alpha-5.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\commons-cli\commons-cli\1.0\commons-cli-1.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\wagon\wagon-ssh\1.0-alpha-5\wagon-ssh-1.0-alpha-5.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-profile\2.0.1\maven-profile-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-model\2.0.1\maven-model-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-core\2.0.1\maven-core-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-monitor\2.0.1\maven-monitor-2.0.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\qdox\qdox\1.6.1\qdox-1.6.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-artifact-manager\2.0\maven-artifact-manager-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-tools-java\2.1\maven-plugin-tools-java-2.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\wagon\wagon-file\1.0-alpha-5\wagon-file-1.0-alpha-5.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\maven-plugin-tools-beanshell\2.1\maven-plugin-tools-beanshell-2.1.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\mojo\pack200-jdk15\1.0-alpha-2-SNAPSHOT\pack200-jdk15-1.0-alpha-2-SNAPSHOT.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-alpha-5\wagon-provider-api-1.0-alpha-5.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\apache\maven\reporting\maven-reporting-api\2.0\maven-reporting-api-2.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\org\codehaus\mojo\webstart-maven-plugin\pack200-anttasks\1.0\pack200-anttasks-1.0.jar
[DEBUG]   C:\Documents and
Settings\et4642\.m2\repository\doxia\doxia-sink-api\1.0-alpha-4\doxia-sink-api-1.0-alpha-4.jar


To reproduce

svn co https://svn.codehaus.org/mojo/trunk/mojo/webstart-maven-plugin/
cd plugin
change p-u version in pom.xml
cd ..
mvn install



testAddThenRemoveSignatureCheckUsingJarSignVerifyMojo(org.codehaus.mojo.webstart.JarUnsignMojoTest)
Time elapsed: 0.015 sec  <<< ERROR!
java.lang.NoClassDefFoundError: org/codehaus/classworlds/NoSuchRealmException
        at 
org.codehaus.plexus.PlexusTestCase.createContainerInstance(PlexusTestCase.java:126)
        at org.codehaus.plexus.PlexusTestCase.setUp(PlexusTestCase.java:91)
        at 
org.codehaus.mojo.webstart.JarUnsignMojoTest.setUp(JarUnsignMojoTest.java:59)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        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:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)


--
Jerome Lacoste

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to