The problem seems to be a ClassNotFound error for a class in Apache
commons. There appears to be something wrong with your installation of
maven.

What operating system are you using?

With Ubuntu 14.04 64-bit or Fedora 20, please see this
https://github.com/mesos/chronos/issues/211 .  Also, some users in that
community mention that common-lang.jar is missing in the default
installation of Apache Maven 3.0.5.

Somethings you could try:
1. Download the latest version of maven as a tgz from the repo, and run
that binary.
ie, ~/apache-maven-3.0.5/bin/mvn package
instead of the usual 'mvn package'
2. Delete your maven cache directory. Typically, this is ~/.m2
3. Another workaround is to fix this by using a symlink to the installed
version of apache commons so that you include the jar in the lib directory
used by maven:

cd /usr/share/maven/lib
sudo ln -s ../../java/commons-lang.jar .
<https://github.com/toudidel>
Thanks,
Jagadish






On Mon, Feb 29, 2016 at 2:12 PM, Jeff Ramin <jeff.ra...@singlewire.com>
wrote:

>
> Hi folks.
>
> I'm trying to get the hello-samza project running, so I can get acquainted
> w/ samza:
>
> http://samza.apache.org/startup/hello-samza/0.10/
>
> Following the instructions on that page, I'm receiving the error below on
> the "mvn clean package"
> step. Any assistance would be appreciated.
>
> Thanks.
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Samza Example 0.10.0
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> file:///home/ramin/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/
> 3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.pom
> Exception in thread "pool-1-thread-1"
> ---------------------------------------------------
> constituent[0]: file:/usr/share/maven/lib/aether-util.jar
> constituent[1]: file:/usr/share/maven/lib/aether-spi.jar
> constituent[2]: file:/usr/share/maven/lib/wagon-file.jar
> java.lang.NoClassDefFoundError:
> org/apache/commons/lang/StringUtilsconstituent[3]:
> file:/usr/share/maven/lib/maven-repository-metadata-3.x.jar
>
> constituent[4]: file:/usr/share/maven/lib/plexus-interpolation.jar
>     at
> org.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath(FileWagon.java:206)
> constituent[5]: file:/usr/share/maven/lib/commons-logging.jar    at
> org.apache.maven.wagon.providers.file.FileWagon.resourceExists(FileWagon.java:265)
>
> constituent[6]: file:/usr/share/maven/lib/maven-aether-provider-3.x.jar
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:577)
>
> constituent[7]: file:/usr/share/maven/lib/maven-model-builder-3.x.jar
> at
> org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
>
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)constituent[8]:
> file:/usr/share/maven/lib/sisu-guice.jar
>
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> constituent[9]: file:/usr/share/maven/lib/commons-httpclient.jar    at
> java.lang.Thread.run(Thread.java:745)
>
> constituent[10]: file:/usr/share/maven/lib/sisu-inject-bean.jar
> constituent[11]: file:/usr/share/maven/lib/plexus-component-annotations.jar
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.lang.StringUtilsconstituent[12]:
> file:/usr/share/maven/lib/maven-plugin-api-3.x.jar
>
>     at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>     at
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)constituent[13]:
> file:/usr/share/maven/lib/guava.jar
>
>     at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> constituent[14]: file:/usr/share/maven/lib/wagon-http-shaded.jar
>     at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> constituent[15]: file:/usr/share/maven/lib/plexus-sec-dispatcher.jar
>     ... 7 moreconstituent[16]:
> file:/usr/share/maven/lib/wagon-provider-api.jar
>
> constituent[17]: file:/usr/share/maven/lib/maven-embedder-3.x.jar
> constituent[18]: file:/usr/share/maven/lib/aether-impl.jar
> constituent[19]: file:/usr/share/maven/lib/commons-cli.jar
> constituent[20]: file:/usr/share/maven/lib/maven-core-3.x.jar
> constituent[21]: file:/usr/share/maven/lib/maven-artifact-3.x.jar
> constituent[22]: file:/usr/share/maven/lib/maven-settings-3.x.jar
> constituent[23]: file:/usr/share/maven/lib/sisu-inject-plexus.jar
> constituent[24]: file:/usr/share/maven/lib/plexus-cipher.jar
> constituent[25]: file:/usr/share/maven/lib/aether-api.jar
> constituent[26]: file:/usr/share/maven/lib/maven-model-3.x.jar
> constituent[27]: file:/usr/share/maven/lib/maven-compat-3.x.jar
> constituent[28]: file:/usr/share/maven/lib/commons-codec.jar
> constituent[29]: file:/usr/share/maven/lib/maven-settings-builder-3.x.jar
> constituent[30]: file:/usr/share/maven/lib/aether-connector-wagon.jar
> constituent[31]: file:/usr/share/maven/lib/plexus-utils.jar
> ---------------------------------------------------
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/lang/StringUtils
>     at
> org.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath(FileWagon.java:206)
>     at
> org.apache.maven.wagon.providers.file.FileWagon.resourceExists(FileWagon.java:265)
>     at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:577)
>     at
> org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.lang.StringUtils
>     at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>     at
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
>     at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
>     at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
>     ... 7 more
>
> --
> Jeff Ramin
> Software Engineer
> Singlewire Software
> 2601 W Beltline Hwy #510
> Madison, WI 53713
>
> Phone Direct - 608.661.1172
> www.singlewire.com
>
>


-- 
Jagadish V,
Graduate Student,
Department of Computer Science,
Stanford University

Reply via email to