Return-Path: X-Original-To: apmail-gora-dev-archive@www.apache.org Delivered-To: apmail-gora-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67C049C82 for ; Sat, 3 Mar 2012 11:41:40 +0000 (UTC) Received: (qmail 46947 invoked by uid 500); 3 Mar 2012 11:41:40 -0000 Delivered-To: apmail-gora-dev-archive@gora.apache.org Received: (qmail 46919 invoked by uid 500); 3 Mar 2012 11:41:40 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 46909 invoked by uid 99); 3 Mar 2012 11:41:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 11:41:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.215.52] (HELO mail-lpp01m010-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 11:41:32 +0000 Received: by lahi5 with SMTP id i5so2924011lah.25 for ; Sat, 03 Mar 2012 03:41:12 -0800 (PST) Received-SPF: pass (google.com: domain of ferdy.galema@kalooga.com designates 10.112.103.8 as permitted sender) client-ip=10.112.103.8; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ferdy.galema@kalooga.com designates 10.112.103.8 as permitted sender) smtp.mail=ferdy.galema@kalooga.com Received: from mr.google.com ([10.112.103.8]) by 10.112.103.8 with SMTP id fs8mr6088585lbb.39.1330774872019 (num_hops = 1); Sat, 03 Mar 2012 03:41:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.103.8 with SMTP id fs8mr4971459lbb.39.1330774871929; Sat, 03 Mar 2012 03:41:11 -0800 (PST) Received: by 10.112.25.163 with HTTP; Sat, 3 Mar 2012 03:41:11 -0800 (PST) In-Reply-To: References: Date: Sat, 3 Mar 2012 12:41:11 +0100 Message-ID: Subject: Re: Problems with invoking Gora classes from CLI From: Ferdy Galema To: dev@gora.apache.org Content-Type: multipart/alternative; boundary=f46d0401fa8d84755204ba552bde X-Gm-Message-State: ALoCoQmXccOA+7f+VY1NvNOkD+emJ7vGZTsuU/7LWLfoyxXyICu0BAEuUGICRJR5igpnWGHBss8d X-Virus-Checked: Checked by ClamAV on apache.org --f46d0401fa8d84755204ba552bde Content-Type: text/plain; charset=ISO-8859-1 We could simply change the 'build' references in the gora script to the appropiate 'target' folders? On Fri, Mar 2, 2012 at 8:15 PM, Lewis John Mcgibbney < lewis.mcgibbney@gmail.com> wrote: > This is to do with the last couple lines of the gora bash script. > > It specifies that we should be adding classes to classpath from /build, > where I've been producing /target directories :0| > > I don't think there even is a maven lifecycle command that creates build > directory from install, compile... do we need to commit a change for this? > > On Fri, Mar 2, 2012 at 4:50 PM, Lewis John Mcgibbney < > lewis.mcgibbney@gmail.com> wrote: > > > Hi, > > > > Working with trunk, from $GORA_HOME > > > > mvn clean install -DskipTests (because of HBase one's) > > > > $bin/gora > > > > lewis@lewis-01:~/ASF/gora-test$ bin/gora > > Usage: run COMMAND [COMMAND options] > > where COMMAND is one of: > > compile Run Compiler > > specificcompiler Run Avro Specific Compiler > > logmanager Run the tutorial log manager > > loganalytics Run the tutorial log analytics > > junit Run the given JUnit test > > or > > MODULE CLASSNAME run the class named CLASSNAME in module MODULE > > Most commands print help when invoked w/o parameters. > > > > OK so far, > > > > lewis@lewis-01:~/ASF/gora-test$ bin/gora compile > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/gora/compiler/GoraCompiler > > Caused by: java.lang.ClassNotFoundException: > > org.apache.gora.compiler.GoraCompiler > > 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) > > Could not find the main class: org.apache.gora.compiler.GoraCompiler. > > Program will exit. > > > > Same with logmanager and loganalytics bascially the gora classes. > > The avro specificcompiler gives me another stack trace, however thisis > > because specificcompiler doesn't have a main method. > > Junit gives me the expected TestRunner output. > > > > What's wrong here? > > > > > > > > -- > > *Lewis* > > > > > > > -- > *Lewis* > --f46d0401fa8d84755204ba552bde--