For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

Rebuilding the Java SDK with a newer WSDL version

  • Answer ID 1361
  • Published 02/12/2009 10:07 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=1361
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 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

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter