Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

Problems using the SRM SDK and vijava concurrently

$
0
0

Hi,

 

I downloaded the SRM SDK from VMware and used their build.bat script to build the project. If I include the resultant srm.jar as a dependency to my project in Eclipse, I'm able to utilize the functionality and utilize their sample "RecoveryPlan.java", etc.

 

The problem arises when I also attempt to utilize vijava -- it's a great tool that I use frequently. If this is included as a dependency in the same project, I receive the following when I attempt to run:

 

javax.xml.ws.WebServiceException

...

...

 

Unable to create JAXBContext

Caused by:

java.security.PrivilegedActionException: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 4606 counts of IllegalAnnotationExceptions

Class has two properties of the same name "type"

this problem is related to the following location:

at public java.lang.String com.vmware.vim25.ManagedObjectReference.getType()

at com.vmware.vim25.ManagedObjectReference

at protected com.vmware.vim25.ManagedObjectReference com.vmware.srm.ProtectionGroupQueryVmProtectionRequestType._this

at com.vmware.srm.ProtectionGroupQueryVmProtectionRequestType

at public com.vmware.srm.ProtectionGroupQueryVmProtectionRequestType com.vmware.srm.ObjectFactory.createProtectionGroupQueryVmProtectionRequestType()

at com.vmware.srm.ObjectFactory

this problem is related to the following location:

at public java.lang.String com.vmware.vim25.ManagedObjectReference.type

at com.vmware.vim25.ManagedObjectReference

at protected com.vmware.vim25.ManagedObjectReference com.vmware.srm.ProtectionGroupQueryVmProtectionRequestType._this

at com.vmware.srm.ProtectionGroupQueryVmProtectionRequestType

at public com.vmware.srm.ProtectionGroupQueryVmProtectionRequestType com.vmware.srm.ObjectFactory.createProtectionGroupQueryVmProtectionRequestType()

at com.vmware.srm.ObjectFactory

 

... and it repeats for the other 4600+ conflicts. Is there a way to utilize the two of them concurrently? I really need the libraries in vijava as well as the new functionality introduced in the SRM SDK.


Viewing all articles
Browse latest Browse all 1860

Latest Images

Trending Articles



Latest Images

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