users@jaxb.java.net

Re: customize DataTypeConverter

From: David Rosenstark <david.rosenstark_at_corp.idt.net>
Date: Wed, 11 Jun 2003 10:51:04 +0300

ok, i figured it out. Had a mistake in my binding.xjb file.
Thanks

-----Original Message-----
From: David Rosenstark [mailto:david.rosenstark_at_corp.idt.net]
Sent: Wed 11 June 2003 10:42
To: Discussion list for the Java Architecture for XML Binding
Subject: Re: customize DataTypeConverter


Thanks for the response. I tried that and still get that error, When i use
the same classpath declaration on its own, it works.
Is there any place i can add more debugging to see what it thinks is the
classpath?

TIA,
David

Original message follows:
----------------------------------------------------------------------------
-------
Date: Tue, 10 Jun 2003 10:34:08 +0100
From: Sarah Hardy <Sarah.Hardy_at_tcplifesystems.com>
Subject: Re: customize DataTypeConverter

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