Skip to main content
Published: February 12 2009, 11:07:00 PMUpdated: November 28 2020, 5:17:56 PM

How do I rebuild the Java JAXB SDK with a newer WSDL version


Instructions on rebuilding the Java JAXB SDK with a newer WSDL version.

 Detailed Description

1.  Download the target WSDL and save it as ${JAVA_JAXB_SDK_HOME}/source/wsdl/eBaySvc.wsdl

2.  Modify  ${JAVA_JAXB_SDK_HOME}/build/setenv.bat and set the required environment variables and execute the script

3Run the build scirpt as below:
  ${JAVA_JAXB_SDK_HOME}/build> ant build

NOTE. It is observed that Java JAXB SDK building throws the following exception when running with some of the JDK versions.  

[wsimport] Exception in thread "main" java.util.ServiceConfigurationError: Provider
cationAddOn could not be instantiated: java.lang.ClassCastException

   The known buggy JDK versions are JDK 1.6.0_04 b07 and JDK 1.6.0_05-ea as reported on Sun Web Services Interoperability Technologies site. The workaround for this issue is just simply update your JDK to the latest JDK 1.6 version or higher.

Version Info

The instructions above apply to all versions of the Java JAXB SDK. 

How well did this answer your question?
Answers others found helpful