Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

An Import-Package could not be resolved. Caused by missing constraint in bundle constraint:

$
0
0

For vSphere Web Client plugin,  i created a java Service , i try to create a datastore in the ESX host using VI JAVA .. i included

import com.vmware.vim25.*;
import com.vmware.vim25.mo.*;

files in service implementation and included external JARS to STS environment and created a function to list all hosts

public List<String> listVcHosts() throws Exception{    ManagedEntity[] hosts = new InventoryNavigator(rootFolder).searchManagedEntities("HostSystem");  List<String> listHosts = new ArrayList<String>();   for( ManagedEntity me : hosts ) {       HostSystem host = (HostSystem) me;       //Adding the list of hosts in List       listHosts.add(host.getName().toString());   }  return listHosts;   }

 

When am executing as JAVA Application from STS its working fine without any warnings...

 

I copied JARS to server/pickup folder and trying to deploy the services in VIRGO ...

Its Throwing

An Import-Package could not be resolved. Caused by missing constraint in bundle <com.xx.xxx.xxxx_1.0.0>             constraint: <Import-Package: com.vmware.vim25.mo; version="0.0.0">

Viewing all articles
Browse latest Browse all 2218

Trending Articles



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