Hi Mark,
Thanks for your help.
We are using Oracle 9.2.0.4.
The classes I am trying to load are the ones indicated as required on the Sun web site </code>
https://jaxb.dev.java.net/faq/index.html <code>
Q. Which jar files do I need to distribute with my application that uses the JAXB RI?
A. This is the complete list from JAXB RI v1.0.2 (JWSDP1.3) and higher:
$JWSDP_HOME/jaxb/lib/jaxb-api.jar
$JWSDP_HOME/jaxb/lib/jaxb-impl.jar
$JWSDP_HOME/jaxb/lib/jaxb-libs.jar
$JWSDP_HOME/jwsdp-shared/lib/jax-qname.jar
$JWSDP_HOME/jwsdp-shared/lib/namespace.jar
$JWSDP_HOME/jwsdp-shared/lib/relaxngDatatype.jar
$JWSDP_HOME/jwsdp-shared/lib/xsdlib.jar
The runtime also needs a JAXP-compliant parser. If your target environment is JRE 1.4 or higher , it is a part of JRE, so you don't need any more jar file. Otherwise you have to bundle a parser, too. Any parser would do the job, but we recommend the JAXP RI bundled in the JWSDP (which is what we test against.)
We are using the JRE 1.3 from Oracle 9i so I added:
$JWSDP_HOME/jaxp/lib/jaxp-api.jar
$JWSDP_HOME/jaxp/lib/endorsed/sax.jar
$JWSDP_HOME/jaxp/lib/endorsed/dom.jar
$JWSDP_HOME/jaxp/lib/endorsed/xercesImpl.jar
$JWSDP_HOME/jaxp/lib/endorsed/xalan.jar
It is quite a long list but it ties in with my testing outside of Oracle, when I have the above libaries and JDK 1.3 I can run my programs without any problems, remove afew and I either get a compile or runtime errors.
The java.nio.* classes cannot be present in the code path I intend to use as I dont come across any ClassNotFoundException or similar errors in my testing.
So I think the java.nio.* classes are just needed for resolution.
Can you please confirm if it is possible to load and use the Sun JAXB implementation in 9i.
Thanks
Steve