users@jaxb.java.net

Re: Strange error

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_sun.com>
Date: Tue, 11 Mar 2003 17:53:17 -0500

Han Ming is correct. There is a known incompatibility with the Xerces jar
that ships with Ant 1.5.1 (Xerces 2.2.0, I believe). You'll need to make
sure to use the version of Xerces that ships with JAXB or download a new
version off of the web.

--Ryan

Han Ming Ong wrote:
> XML parser classpath problem. This seems to be an FAQ that SUN can put
> up.
> Search the archive too.
>
> Han Ming
>
> On Tuesday, March 11, 2003, at 11:56 AM, Steven Cummings wrote:
>
>> Hello all,
>>
>> I am not new to XML Schema, but I am new to JAXB. I'm trying to run
>> xjc on a schema via the Ant-task, and getting a strange error. I know
>> my schema is well-formed and valid as it verifies inside XMLSpy and
>> can be processed by Castor's source generator. So does anybody have
>> any idea of why JAXB's xjc gives me the following inexplicable error?
>>
>> [echo] Compiling the schema...
>> [xjc] Compiling file:/my/path/profile.xsd
>> [xjc] org.xml.sax.SAXParseException: Unexpected
>> </xs:restriction> appears at line 17 column 22
>> [xjc] at
>> com.sun.xml.xsom.impl.parser.state.NGCCRuntime.unexpectedX(NGCCRuntime.
>> java:495)
>> ...
>> [more traceback left out]
>>
>> Thanks.
>>
>> /S
>>
>> --
>> Steven Cummings
>> Columbia, MO
>> Email: cummingscs_at_netscape.net
>> AIM: cummingscs
>> ICQ: 3330114
>> MSN: cscummings_at_hotmail.com
>>
>> Hi! I'm a .signature virus! copy me into your .signature file to help
>> me spread!
>>
>>
>> __________________________________________________________________
>> The NEW Netscape 7.0 browser is now available. Upgrade now!
>> http://channels.netscape.com/ns/browsers/download.jsp
>>
>> Get your own FREE, personal Netscape Mail account today at
>> http://webmail.netscape.com/
>
>