Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 58027 invoked from network); 31 Dec 2009 15:56:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Dec 2009 15:56:41 -0000 Received: (qmail 60144 invoked by uid 500); 31 Dec 2009 15:56:41 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 60125 invoked by uid 500); 31 Dec 2009 15:56:41 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 60115 invoked by uid 99); 31 Dec 2009 15:56:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 15:56:40 +0000 X-ASF-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apparition077@gmail.com designates 209.85.218.217 as permitted sender) Received: from [209.85.218.217] (HELO mail-bw0-f217.google.com) (209.85.218.217) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 15:56:34 +0000 Received: by bwz9 with SMTP id 9so7754623bwz.12 for ; Thu, 31 Dec 2009 07:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TKGuPRBjnfIwCETJHyKhGw2PNGGkIPBj5sN9PTvMzjU=; b=f+teIKzQlYnjEfWArfFLK5NWPjpPS1RRy96NyUYIM9RmO/DoOTHW65lrMW7irDnehj lSCjIb1aE+t3+OVVFKGnjImBc6AYNB+eBrTbFtICG1tmCkN/Cx31zink/V9Qgjug+o3B sXf6zvD810uuD7yNvhd8CW+lLXxEEQ7TYg8KY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=sDNJy5A+3HnQO1UZVWVjRBvG0CcdeapBte4EIHm/GEqfEJjnLqMa5KzTZmusNLU2/L NqJequ2QUvcE/GcLE/7VI3eYSXJXA1Mayroam88GO83oXo54Uw4dz1Ke4/tZRe1pD5tx HlZahw+PPiGY4VYJaU2KoAhrDKJ2k7mXdD1uw= MIME-Version: 1.0 Sender: apparition077@gmail.com Received: by 10.204.25.143 with SMTP id z15mr5314353bkb.8.1262274972688; Thu, 31 Dec 2009 07:56:12 -0800 (PST) In-Reply-To: <5adb61290912310700i2ee9bd57l8d3287f7c656ab6a@mail.gmail.com> References: <4B3C8D73.3040104@buk.cvut.cz> <5adb61290912310700i2ee9bd57l8d3287f7c656ab6a@mail.gmail.com> Date: Thu, 31 Dec 2009 18:56:12 +0300 X-Google-Sender-Auth: d9abf65a90abab52 Message-ID: <9f90c2b60912310756l109bae87wee48dd931805a395@mail.gmail.com> Subject: Re: Configuration files From: Evgeny Ryabitskiy To: user@cayenne.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cayenne is looking for xml files in your jar/war by it's pass. pass is Relative (not absolute). So when you are building you jar/war you should care that this configuration files are placed in jar/war in same manner you are configured your application. You can use DefaultConfiguration / FileConfiguration to set path to cayenne= .xml http://cayenne.apache.org/doc20/customizing-configuration.html Evgeny. 2009/12/31 Michael Gentry : > I put my Cayenne configuration files in src/main/resources, at least > for Maven projects. > > mrg > > > On Thu, Dec 31, 2009 at 6:39 AM, Marek =C5=A0abo wrot= e: >> Hi everyone, >> >> I started using cayenne yesterday and got it up and running in my webapp >> alongside wicket. I have question about configuration files: can i put t= hem >> somewhere else besides the source root (for wicket it is src/main/java) = and >> then define that location somewhere - e.g. filter configuration in web.x= ml? >> Point is I would very much like to have it under src/main/resources (e.g= . >> like hibernate does) but then I think it probably won't be able to >> traceroute the location of mapping classes from package name. >> >> TIA, regards >> >> -- >> Marek =C5=A0abo >> Chief Server Manager >> Club SU CVUT Buben >> Bubene=C4=8Dsk=C3=A1 Kolej >> Terronsk=C3=A1 28, Prague 16000 >> XMPP: zeratul021@gmail.com >> >> >