users@jaxb.java.net

Re: customize DataTypeConverter

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

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