The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

kkelleher (19) [Avatar] Offline
#1
Hi,

I'm reading Mule In Action Second edition..

Step 1 : I download the source code & do "mvn clean install" from cmdline ... All works ok! ... Great!

Step 2 : Next I install Mule Studio & create the example project .. Again this all works... Great!

Step 3 : However if I now go back to Step 1 and try "mvn clean install" in chapter01 I now get the below... I'm guessing that the downloads that mule studio initiated "corrupted" my repository store.

<code>
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseExcepti
on
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 30 more

ProductRegistrationFunctionalTestCase Time elapsed: 0.007 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.mule.tck.junit4.A
bstractMuleContextTestCase
</code>
vromero (6) [Avatar] Offline
#2
Re: Could not initialize class org.mule.tck.junit4.AstractMuleContextTestCase
This is a AnypointStudio related problem, https://www.mulesoft.org/jira/browse/MULE-7083

Please just delete commons-cli from your repo:

rm ~/.m2/repository/commons-cli
kkelleher (19) [Avatar] Offline
#3
Re: Could not initialize class org.mule.tck.junit4.AstractMuleContextTestCase
Yes .. that's it ... thank you Victor ...