commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <skitch...@apache.org>
Subject Re: .betwixt file ignored
Date Tue, 09 May 2006 19:23:54 GMT
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


Mime
View raw message