aspose file tools*
The moose likes Web Services and the fly likes JAXB compile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAXB compile" Watch "JAXB compile" New topic
Author

JAXB compile

Brian Mulholland
Ranch Hand

Joined: Mar 12, 2009
Posts: 61
I am trying to set up JAXB to build classes when my eclipse builds. Another project here has this set up by an ex-employee but we need to update it to a more recent version. I think I am doing the equivalent of everything he did, but I keep getting warnings (and other errors) like the following:



I have confirmed that I can reach the url. The offending tag in my xsd is:



Ideas?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3859

... update it to a more recent version

Of what? JAXB?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Brian Mulholland
Ranch Hand

Joined: Mar 12, 2009
Posts: 61
Yes. Updating JAXB. The third complaint of the error message (that it doesn't start with <xsd:schema>, is true. The file at the end of that URL starts with <xs:schema> not xsd. It seems like that little 'd' might be the source of my problems. But why does the XML parser think that is appropriate? I see nothing in my project or any xsd file that attempts to create an xsd namespace. In fact, a text search of my entire project confirms that xsd only occurs as file name suffixes, and in comments. The URL it blows up on is in a schema I downloaded that defines the Atom feed, and is publicly in use, and the reference it blows up on is public, from w3c.

I saw some forum posts implying that there was a validation bug in past versions, but I am updating to 2.2.1.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB compile