commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: Betwixt: Loading Custom "Dot Betwixt" Documents
Date Mon, 25 Oct 2004 21:35:56 GMT
looks like a dependency issue.

i suspect that there's an old betwixt jar in your runtime classpath 
(that isn't in you compile classpath). it's just possible that (since 
you look like you're using bytecode enhancement) that some of your code 
is old and needs to be cleanly recompiled.

- robert

On 22 Oct 2004, at 21:52, JonTom Kittredge wrote:

> I am using Betwixt-0.6, which I downloaded last week.
> I was trying to use the "Custom Dot Betwixt Documents" feature, as
> described in the "Binding Beans" feature of the User Guide.
>
> I'm trying to imitate the following example:
>
>       String contractSetBetwixt =
> 	("<?xml version='1.0' encoding='UTF-8' ?>" +
> 	 "<info primitiveTypes=\"attribute\">" +
>          "   <element name=\"dbq:ContractSet\">" +
>          "     <element name=\"dbq:Contract\" 
> property=\"contracts\"/>" +
>          "     <addDefaults/>" +
>          "   </element>" +
> 	 "</info>");
>       beanReader.registerBeanClass(new InputSource(new 
> StringReader(contractSetBetwixt)),
> 				   DBQContractSet.class);
>
> When I tried to compile the code, however, I got this error:
>     com/itasoftware/rfd/hibernate/DBQContractStoreHIB.java:153: cannot 
> resolve symbol
>     nsymbol  : method registerBeanClass 
> (org.xml.sax.InputSource,java.lang.Class)
>     location: class org.apache.commons.betwixt.io.BeanReader
>           beanReader.registerBeanClass(new InputSource(new 
> StringReader(contractSetBetwixt)),
>
> When I look at the Java Doc, the method is definitely there:
>
>  void registerBeanClass(org.xml.sax.InputSource mapping, 
> java.lang.Class beanClass)
>           Registers a class with a custom mapping.
>
> But when I look at the source for BeanReader.java, the method isn't
> there!
>
> What gives?
>
> Yours, JonTom
>
>        JT Kittredge
>        ITA Software, Inc.
>        Cambridge, Massachusetts
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
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