Skip to main content

(newbie) How to run JAXB catalog-resolver sample

1 reply [Last post]
gmazza
Offline
Joined: 2005-01-14

Hello, I would like to run xjc (I guess) on the samples/catalog-resolver sample[1] but don't know how (which parameters I should be using, etc.) The readme.txt file[2] isn't particularily informative here. Also, in that readme.txt file, the URL at line 19 does not work (even with the typo around "www" removed)--does anyone know what the URL today for the article referenced should be?

Thanks,
Glen

[1] http://fisheye5.cenqua.com/browse/jaxb2-sources/jaxb-ri/samples/samples-...

[2] http://fisheye5.cenqua.com/browse/jaxb2-sources/jaxb-ri/samples/samples-...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmazza
Offline
Joined: 2005-01-14

OK, I was able to answer my own questions:

After running "ant dist" from the JAXB distribution root to create the JAR files, I ran the xjc.sh script in the dist/bin/xjc directory:

/path/to/xjc.sh -catalog catalog.xsd test.xsd

Only problem is that the catalog does not seem to be read. I will need to do more testing of this.

Also, from the RI notes (https://jaxb.dev.java.net/nonav/2.1.3/docs/xjc.html), the new URL for the document referenced is https://jaxb.dev.java.net/nonav/2.1.3/docs/catalog.html.