Return-Path: X-Original-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AAFFB624A for ; Wed, 22 Jun 2011 23:47:09 +0000 (UTC) Received: (qmail 50739 invoked by uid 500); 22 Jun 2011 23:47:09 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 50688 invoked by uid 500); 22 Jun 2011 23:47:09 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 50459 invoked by uid 99); 22 Jun 2011 23:47:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 23:47:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 23:47:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A754C429640 for ; Wed, 22 Jun 2011 23:46:47 +0000 (UTC) Date: Wed, 22 Jun 2011 23:46:47 +0000 (UTC) From: "Joseph Boyd (JIRA)" To: hama-dev@incubator.apache.org Message-ID: <20414346.30825.1308786407682.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <53404530.30716.1308783167527.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HAMA-405) NoClassDefFoundError: org/apache/commons/cli/ParseException running bin/hama zookeeper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HAMA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053546#comment-13053546 ] Joseph Boyd commented on HAMA-405: ---------------------------------- How about manually excluding all the current transitive dependencies except for the above 3 (jetty/logforj/cli). While a bit more verbose in the pom.xml, it would keep the distributed dependencies short, and let the pom.xml properly declare only direct dependencies. I'm happy to submit a patch for that (almost done...) > 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 > Fix For: 0.3.0 > > Attachments: 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