Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 97827 invoked from network); 20 Jun 2005 09:32:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2005 09:32:13 -0000 Received: (qmail 68439 invoked by uid 500); 20 Jun 2005 09:32:11 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 68418 invoked by uid 500); 20 Jun 2005 09:32:10 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 68399 invoked by uid 99); 20 Jun 2005 09:32:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 02:32:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.115.149.212] (HELO manta.curalia.se) (213.115.149.212) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 02:31:41 -0700 Received: from manta.curalia.se (manta.curalia.se [213.115.149.212]) by manta.curalia.se (Postfix) with ESMTP id 6B985ABC031 for ; Mon, 20 Jun 2005 11:31:46 +0200 (CEST) Received: from [172.20.6.103] (raa-se.raa.se [193.10.40.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by manta.curalia.se (Postfix) with ESMTP id 44623ABC008 for ; Mon, 20 Jun 2005 11:31:46 +0200 (CEST) Message-ID: <42B68D71.8020706@apache.org> Date: Mon, 20 Jun 2005 11:33:37 +0200 From: =?ISO-8859-1?Q?Martin_Kal=E9n?= Organization: ASF User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Users List Subject: Re: Location of repository.xml References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP X-Old-Spam-Check-By: apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hiller, Frank RD-AS2 wrote: > I found out, temporarily setting of "user.dir" as follows: > System.setProperty("user.dir", MyConfigDir + "/"); > resolves the problem. I don't think you have to do this. When deploying OJB as a JAR to Tomcat webapps, just make sure repository.xml is in the root folder of your JAR (ie the CLASSPATH root) and it will be picked up. The following JAR structure works perfectly fine without doing any type of programmatic workarounds: \ repository.dtd repository.xml OJB.properties OJB-logging.properties ... \com.yourcompany.yourpackage YourJavaClasses.class It should apply for a WAR as well, did you try this? Regards, Martin --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org