users@jaxb.java.net

Entity Resolver

From: Geoff Bawn <Geoff.Bawn_at_ppa.nhs.uk>
Date: Thu, 17 Jun 2004 14:31:50 +0100

I am having a problem getting the Entity Resolver working with XJC. i am
using JAXB version 1.02 and Windows XP.

In my bindings file (JAXBBinding3.xjb) I have the following:

     <jxb:bindings schemaLocation="datatypes.xsd" >

where datatypes.xsd is the schema that has name collisions.

In my catalog file (catalog.cat) I have the following

     SYSTEM "datatypes.xsd"
"file:///C:/WSAD-IE5-WS/Workspace-01/JAXB/dt/datatypes.xsd"

and my xjc command is as follows:

C:\Data\etp>xjc -b JAXBBinding3.xjb -catalog catalog.cat ......

but I get the error
[ERROR] "file:/C:/Data/etp/datatypes.xsd" is not a part of this
compilation
  line 4 of JAXBBinding3.xjb

I could put the full path name in the bindings file, but I don' t think
that is the correct solution.

Can someone also explain why Entity Resolving with the XJC JAXB
compiler is different than when you use Entity Resolving at runtime?
What I mean is that at runtime I use a Catalog.properties file to define
the Catalog.xml files that hold the entity resolving statements. These
are in xml format as defined at
http://java.sun.com/webservices/docs/1.2/jaxb/catalog.html but the
catalog examples in JAXB samples/catalog-resolver use simple text files
without any mention of the Catalog.properties file. Can anybody explain
this?

Also, if you use the full path name of the bindings file, and it has a
space in it, then XJC won't work even if you surround the filename in
quotes.

Thanks.



Geoff Bawn
Phone +44 (0)191 203-5483
E-Mail Geoff.Bawn_at_PPA.NHS.UK
Fax (0191) 203-5264



*** IMPORTANT NOTICE ***
*** PPA DISCLAIMER ***
This e-mail and any attachments transmitted with it, including replies and forwarded copies subsequently transmitted (which may contain alterations), contains information which may be confidential and which may also be privileged.
The content of this e-mail is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), or the person authorised as responsible for delivery to the intended recipient(s), please note that any form of distribution, copying or use of this e-mail
or the information in it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify the Network Team at the Prescription Pricing Authority via e-mail to network.team_at_ppa.nhs.uk including a copy of this message. Please then delete this e-mail and destroy any copies of it.
Further, we make every effort to keep our network free from viruses. However, you do need to validate this e-mail and any attachments to it for viruses, as we can take no responsibility for any computer virus that might be transferred by way of this e-mail.
This e-mail is from the Prescription Pricing Authority whose principal office is at Bridge House, 152 Pilgrim Street, Newcastle-upon-Tyne, NE1 6SN. Switchboard Telephone Number :- +44 (0)191 232 5371


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net