[
https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph Boyd updated HAMA-405:
-----------------------------
Attachment: HAMA-405.patch
Updated patch:
Removes the excludeTransitive option from the copy-dependencies target:
<excludeTransitive>true</excludeTransitive>
Specifically excludes all of the current transitive dependencies except two :
commons-cli : A necessary dep of hadoop-core, seen in the issue description
servlet-api : A necessary dep of jetty, needed to compile
org.apache.hama.http.HttpServer
Patch also adds several new dependencies, identified by Edward Yoon:
slf4j-log4j12
jetty-annotations
jetty-plus : A necessary transitive dep of jetty-annotations, needed by
org.apache.hama.MiniBSPCluster (excluding it generates ClassNotFoundException:
org.mortbay.jetty.plus.webapp.EnvConfiguration during the build when the tests
try to start the bspmaster webapp)
jetty-naming : A necessary dep of org.apache.hama.http.HttpServer.java, to
get class org.mortbay.naming.InitialContextFactory
> NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama
> zookeeper
> --------------------------------------------------------------------------------------
>
> Key: HAMA-405
> URL: https://issues.apache.org/jira/browse/HAMA-405
> Project: Hama
> Issue Type: Bug
> Components: build
> Affects Versions: 0.3.0
> Reporter: Joseph Boyd
> Assignee: Joseph Boyd
> Fix For: 0.3.0
>
> Attachments: HAMA-405.patch, HAMA-405.patch
>
>
> It was reported on the mailing list that the current SVN head generates an
> error when running zookeeper on the command line
> $ bin/hama zookeeper
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/ParseException
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hama.ZooKeeperRunner.main(ZooKeeperRunner.java:41)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.cli.ParseException
> 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:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira