users@jaxb.java.net

Re: customize DataTypeConverter

From: Sarah Hardy <Sarah.Hardy_at_tcplifesystems.com>
Date: Tue, 10 Jun 2003 10:34:08 +0100

Hi David,

It sounds the same as I problem that I had but I did find that if I passed
the full classpath of my converter class to xjc in the -classpath variable,
it did fix it. My full call looks like this:

call %JAXB_HOME%\bin\xjc.bat -b %BIND_HOME%\resources\schemas\binding.xjb -p
proj.demo -classpath %BIND_HOME%\webApplication\WEB-INF\classes
%BIND_HOME%\resources\schemas\ProjDataSchema.xsd

It's also worth noting that there's a spelling mistake in the classpath
declaration in the documentation, and this couldv'e been the point where I
found it. This is the classpath declaration that I use:

set
CLASSPATH=%CLASSPATH%;%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB
_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxp-api.jar;%JAXP
_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\en
dorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSD
P_LIBS%\namespace.jar

Hope this helps,
Sarah

-----Original Message-----
From: David Rosenstark [mailto:david.rosenstark_at_CORP.IDT.NET]
Sent: 10 June 2003 10:05
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: customize DataTypeConverter


I have written my own DataTypeConverter, yet no matter what i do, i cannot
get it to find it when running xjc. I even added the class to the classpath
in xjc.bat at the beginning of the classpath line and still it tells me it
did not find it. I have tested to make sure it is not misspelled by copying
and pasting that classpath and using to run another function from that
class.

What am I missing?

TIA,
David

________________________________________________________________________

This message is from TCPLifeSystems. The information
in this message is confidential and it is intended solely for the
addressee. Access to this message by anyone else is unauthorised. If
you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it is prohibited
and may be unlawful. If you have received this message in error please
notify admin_at_tcplifesystems.com and delete it from your system.

Any views expressed by an individual within this message that do not
relate to the official business of the Computer Partnership Limited do
not necessarily reflect the views of the Computer Partnership Limited.
Unless otherwise stated any pricing information contained within this
message is subject to change.

TCP LifeSystems is a trading name of The Computer Partnership Ltd.

Whilst any attachments to this message may have been checked for
viruses, please rely on your own virus checker and procedures. We
therefore exclude all liability arising out of any viruses that might
exist in any attachment.

________________________________________________________________________