Skip to main content
Published: February 12 2009, 11:07:00 PMUpdated: August 09 2022, 8:12:28 AM

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

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:
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. The workaround for this issue is  to 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

Got thoughts? Click the feedback button – your insights help us improve!