Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 82099 invoked from network); 9 May 2006 19:24:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2006 19:24:21 -0000 Received: (qmail 89452 invoked by uid 500); 9 May 2006 19:24:15 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 89395 invoked by uid 500); 9 May 2006 19:24:15 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 89384 invoked by uid 99); 9 May 2006 19:24:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 12:24:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [210.86.15.58] (HELO mta206-rme.xtra.co.nz) (210.86.15.58) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 12:24:14 -0700 Received: from mta2-rme.xtra.co.nz ([210.86.15.186]) by mta206-rme.xtra.co.nz with ESMTP id <20060509192353.XSLP22037.mta206-rme.xtra.co.nz@mta2-rme.xtra.co.nz> for ; Wed, 10 May 2006 07:23:53 +1200 Received: from [10.1.1.8] ([222.153.65.177]) by mta2-rme.xtra.co.nz with ESMTP id <20060509192352.ZEN12918.mta2-rme.xtra.co.nz@[10.1.1.8]> for ; Wed, 10 May 2006 07:23:52 +1200 Subject: Re: .betwixt file ignored From: Simon Kitching To: Jakarta Commons Users List In-Reply-To: <4460E667.4060307@davidkarlsen.com> References: <25573ac10605091019q1c0349bw267f7c0b1afafeba@mail.gmail.com> <4460E667.4060307@davidkarlsen.com> Content-Type: text/plain Date: Wed, 10 May 2006 07:23:54 +1200 Message-Id: <1147202634.5772.13.camel@blackbox> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tue, 2006-05-09 at 20:58 +0200, David J. M. Karlsen wrote: > Marcos Hass W wrote: > > Hi, > > > > The "Getting Started" section ( > > http://jakarta.apache.org/commons/betwixt/guide/start.html) states.: > > > > "...The XMLIntrospector will look for files of the form > > *className.betwixt*on the classpath using the same ClassLoader used to > > load the given class and > > use that document to specify the mapping to XML..." > > > > I've just followed this paragraph ... > I don't know betwix, but my first understanding of this would lead to a > file : > my.package.class.betwix to be placed in the root of the classpath. (vs > my/package/class/.betwix) No, it definitely belongs right next to the class it is describing. This is working for me. BTW, the suffix is .betwixt, not .betwix, as in "betwixt and between". Betwixt doesn't validate the .betwixt file against a dtd/schema AFAIK, so if you've mis-spelled the root xml tag for example then things will just silently be ignored. You might try deliberately making the .betwixt file into invalid xml, and seeing if an exception is logged by betwixt. I believe that betwixt performs logging (via commons-logging to whatever logging lib you have installed locally), so you might also want to turn up logging for category org.apache.commons.betwixt and see what is output. Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org