Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 8C63871B4 for ; Fri, 11 Nov 2011 21:45:38 +0000 (UTC) Received: (qmail 79924 invoked by uid 500); 11 Nov 2011 21:45:37 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 79794 invoked by uid 500); 11 Nov 2011 21:45:37 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 79786 invoked by uid 99); 11 Nov 2011 21:45:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 21:45:37 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcjlhd-hadoop-dev@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 21:45:27 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROyuI-0006cJ-Fy for common-dev@hadoop.apache.org; Fri, 11 Nov 2011 22:45:06 +0100 Received: from agni2.wlan.psc.edu ([128.182.154.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 22:45:06 +0100 Received: from rreddy by agni2.wlan.psc.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 22:45:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: common-dev@hadoop.apache.org From: Raghu Reddy Subject: Re: Trouble resolving external jar dependency Date: Fri, 11 Nov 2011 21:27:16 +0000 (UTC) Lines: 103 Message-ID: References: <331389622.25827.1312156921296.JavaMail.root@mail-01.cse.ucsc.edu>,<590638891.25829.1312156925860.JavaMail.root@mail-01.cse.ucsc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 128.182.154.100 (Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)) X-Virus-Checked: Checked by ClamAV on apache.org Noah Watkins writes: > > Cool, this got me to where I needed to be. > > Thanks a lot! > -Noah > > On Aug 1, 2011, at 11:18 AM, Rottinghuis, Joep wrote: > > > Run a compile with a -verbose option to the ant command. > > That makes it more verbose and may reveal what the problem is. > > > > Another trick you can try is to add a regular dependency (in Ivy) and drop the file in your local ~/.ivy2 directory. > > You'll probably have to create a directory structure to mimick the group (com.company.tool/tool/version). > > See the other files in .ivy2 and/or the pattern in the ivy.xml for the right pattern. > > > > Cheers, > > > > Joep > > ________________________________________ > > From: Noah Watkins [jayhawk@...] > > Sent: Sunday, July 31, 2011 5:02 PM > > To: common-dev@... > > Subject: Trouble resolving external jar dependency > > > > I'm experimenting with a new file system that depends on an external jar that is not available right now via > maven. I added the jar to the lib/ directory and hadoop-common builds fine. However, when running 'ant > mvn-install' I get the following error. It seems as though a reference to the external jar needs to be added > in an additional location. Where might this reference be? Thanks, Noah > > > > -compile-fault-inject: > > [echo] Start weaving aspects in place > > [iajc] error at import net.newdream.ceph.rados.Cluster; > > [iajc] ^^ > > [iajc] > /home/nwatkins/Projects/hadoop/hadoop- common/common/src/java/org/apache/hadoop/fs/rados/RadosFileSystem.java:44:0::0 > The import net cannot be resolved > > [iajc] MessageHolder: (565 info) (1 error) > > [iajc] [error 0]: error at import net.newdream.ceph.rados.Cluster; > > [iajc] ^^ > > [iajc] > /home/nwatkins/Projects/hadoop/hadoop- common/common/src/java/org/apache/hadoop/fs/rados/RadosFileSystem.java:44:0::0 > The import net cannot be resolved > > I am new to the ant build procedure. I am running build in hadoop- 0.21.0/common. I am encountering exactly the same error. Running with -verbose gave a lot of output that I am unable to figure out the problem. When compiling the classes it seems to find my own classes fine by using the CLASSPATH environment variable to find new classes that I would like to use, but it does not seem to be finding it when running "-compile-fault-inject" target. It looks as if it is not using CLASSPATH when doing this target. Can anyone please suggest a solution to this problem? Included is the tail end of the build output. -------------------- -compile-fault-inject: [echo] Start weaving aspects in place [iajc] error at ServerSocket.setSocketFactory(new org.newsclub.net.unix.AFUNIXSocketImplFactory()); //rreddy@psc.edu [iajc] ^^^^^ [iajc] /usr/uo/9/rreddy/private/hadoop/Server.java:286:0::0 org.newsclub cannot be resolved to a type [iajc] MessageHolder: (850 info) (1 error) [iajc] [error 0]: error at ServerSocket.setSocketFactory(new org.newsclub.net.unix.AFUNIXSocketImplFactory()); //rreddy@psc.edu [iajc] ^^^^^ [iajc] /usr/uo/9/rreddy/private/hadoop/Server.java:286:0::0 org.newsclub cannot be resolved to a type BUILD FAILED /brashear/rreddy/hadoop/hadoop-0.21.0/common/src/test/aop/build/aop.xml:160: The following error occurred while executing this line: /brashear/rreddy/hadoop/hadoop-0.21.0/common/src/test/aop/build/aop.xml:147: The following error occurred while executing this line: /brashear/rreddy/hadoop/hadoop-0.21.0/common/src/test/aop/build/aop.xml:72: 1 errors Total time: 6 minutes 35 seconds -------------------- Thanks!