Home
Find the answer to your question
How do I rebuild the Java JAXB SDK with a newer WSDL version
Summary
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
3. Run 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:
sun.tools.xjc.Plugin: Provider com.sun.tools.internal.xjc.addon.locator.Sour
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.
The instructions above apply to all versions of the Java JAXB SDK.