Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 14222 invoked from network); 9 Feb 2011 23:44:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 23:44:40 -0000 Received: (qmail 54097 invoked by uid 500); 9 Feb 2011 23:44:37 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 54031 invoked by uid 500); 9 Feb 2011 23:44:36 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 54023 invoked by uid 99); 9 Feb 2011 23:44:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 23:44:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cwilkes@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 23:44:28 +0000 Received: by pzk28 with SMTP id 28so139159pzk.35 for ; Wed, 09 Feb 2011 15:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=6peqQ6w9tyO86Nb1Y3B3XI7f8hEDvBrlDjnPDjaXQtU=; b=f3X8Gl/6gIXG4CFDkw5mzWWr42FLovlNh2q1ri61Px0SvvSq9P4jiDbbmZqHkczluK IgtCEkKrPvqH980gAajIixZvYMzMJa+sdspbXZYARppsS0lvDnpfTR0KBtzAjfFqfJKj ei+ZyCtNeklMEdVVRzNNom9iYqvb0dPOZP7O8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=PAc21HDV7TfF+woYXvOAabz2Ft7w7IhvH6cSpZ2afQqPrJiD+30cP3kfXkisZfgYhg rlBprncGcxNx+jM28QLI5wUHqIpLVZ/cnwhea+Sp9ObUZnCa6vgVmoSxels4yt0lQ7zD snQBYoBJgt+AHtUvrY70f/uZTab6LpzeHDNBc= Received: by 10.142.153.14 with SMTP id a14mr13045758wfe.113.1297295048503; Wed, 09 Feb 2011 15:44:08 -0800 (PST) Received: from [10.0.0.43] (sea1nat.classmates.com [208.84.47.48]) by mx.google.com with ESMTPS id x18sm1050201wfa.11.2011.02.09.15.44.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Feb 2011 15:44:07 -0800 (PST) Message-Id: <6FB4C617-0A32-45C6-8692-659A69817E14@gmail.com> From: "Wilkes, Chris" To: solr-user@lucene.apache.org In-Reply-To: <686852.27918.qm@web111407.mail.gq1.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: solr current workding directory or reading config files Date: Wed, 9 Feb 2011 15:44:03 -0800 References: <686852.27918.qm@web111407.mail.gq1.yahoo.com> X-Mailer: Apple Mail (2.936) Is your war always deployed the the same location, ie "/usr/mycomp/ myapplication/webapps/myapp.war"? If so then on startup copy the files out of your directory and put them under CATALINA_BASE/solr (usr/ mycomp/myapplication/solr) and in your war file have the META-INF/ context.xml JNDI setting point to that. If you know of a way to reference CATALINA_BASE in the context.xml that would make it easier. On Feb 9, 2011, at 12:00 PM, Tri Nguyen wrote: > Hi, > > I have a class (in a jar) that reads from properties (text) files. > I have these > files in the same jar file as the class. > > However, when my class reads those properties files, those files > cannot be found > since solr reads from tomcat's bin directory. > > I don't really want to put the config files in tomcat's bin directory. > > How do I reconcile this? > > Tri