Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud SDK for Java
Viewing all articles
Browse latest Browse all 144

How to build Java bindings for the 5.1 vCloud API via JAXB?

$
0
0

How to build Java bindings for the 5.1 vCloud API via JAXB?

 

There is an excellent thread on HOWTO: Build Java bindings for the vCloud API via JAXB at http://communities.vmware.com/thread/327055.

The information documented at the link above works for VCD 1.0 and VCD 1.5 vCloud APIs.

 

For 5.1 vCloud API, following the same information as documented above, I am getting ERRORs on almost every XSD. The error is [ERROR] Unsupported binding namespace "http://www.vmware.com/vcloud/meta". Perha ps you meant "http://java.sun.com/xml/ns/jaxb/xjc"?

 

So, I am looking for information for build Java bindings for the 5.1 vCloud API via JAXB. The following information captures the steps to reproduce the errors.

 

Schema Definition Files - I downloaded an archive of XML schema definition files (*.xsd) for the 5.1 vCloud API. The archive includes two folders:

 

1.5

Schema definition files for vCloud API version 1.5 and later.

schemas

Additional schema definition files that are version-independent or from external sources such as DMTF.

 

 

Build Java bindings for the 5.1 vCloud API via JAXB:

 

Java version:

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

 

Java command:

 

%JAVA_HOME%/bin/xjc -d c:/vmware/vCloud51 -catalog schema-files/schemas/external/catalog.xml -b schema-files/1.5/schemas/vcloud/vcloud.xjb -b schema-files/1.5/schemas/vcloud/ovf.xjb -b schema-files/1.5/schemas/extension/vmwextensions.xjb schema-files/1.5/schemas/master/master.xsd schema-files/1.5/schemas/extension/vmwextensions.xsd

 

Errors:

[ERROR] Unsupported binding namespace "http://www.vmware.com/vcloud/meta". Perha
ps you meant "
http://java.sun.com/xml/ns/jaxb/xjc"?


Viewing all articles
Browse latest Browse all 144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>