users@jaxb.java.net

Re: Compiling JAXB Samples

From: TJB <thefox_at_mts.net>
Date: Sat, 02 Aug 2003 20:16:24 -0500

Thanks so much, I installed the newer Xerces into my IDE and the JAXB
samples are all compiling. I'm looking forward to the documentation for
JAXB as part of WSDP 1.2 becoming available sometime this summer. I had
also read about a xjc wizard being made, is this still in the works?

I've just completed an introduction to building W3C Schema's and also
had a look at Relax NG for comparison. Relax NG seems a lot more
expressive and intuitive without getting in the way of expressing
models, I like it and encourage the further development of Relax NG in
JAXB.

I recently attended SVG Open 03 where I saw a demonstration of SVG
being compiled into classes, this is a great solution. I understand
that JAXB works off of a Schema but something tells me that it might
also be capable of compiling SVG. If there there are others on the list
who work with XML and graphics I would be interested in your feedback
to the following excellent paper from SVG Open 03.

http://www.svgopen.org/2003/papers/WhyCompileSvg/

Regards,

Thomas


On Friday, August 1, 2003, at 05:50 PM, Kohsuke Kawaguchi wrote:

> TJB <thefox_at_mts.net> wrote:
>> Compiling
>> file:/A_WSDP_1.2/WSDP-install/jaxb/samples/unmarshal-read/po.xsd
>> java.lang.lllegalAccessError: tried to access method
>> org.apache.xerces.util.ObjectFactory.findClassLoader()Ljava/lang/
>> ClassLoader; from class org.apache.xerces.parsers.XMLGrammarPreparser
>
> This seems to indicate that you have an old version of Xerces and
> that's
> causing the error.
>
> You could either try to find where the old Xerces is coming from (since
> you are using IDE, that's where you are getting the old one) or modify
> the build script by adding the -nv option (<arg value="-nv".)
>
> The -nv option prevents XJC from using Xerces, so that should get you
> going.
>
>
> FWIW, we've modified our code internally so that XJC works defensively
> against Xerces, so the future versions will be free from this trouble.
>
> regards,
> --
> Kohsuke Kawaguchi 408-276-7063 (x17063)
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>