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

Regarding registration of web client plugin package in vcenter server

$
0
0

Hi,

 

I was developing installer to register my plugin-package. Facing problems while including 3rd party jars.

 

I have followed below steps from SDK tutorial.

 

1. Adding 3rd party jar -> jersey-client-1.17.jar to my project

2. Included all jersey jars in plugins folder of package

3. Added Bundle-SymbolicName of all jars in plugin-package.xml of package

      <bundle id="com.sun.jersey.client" />

      <bundle id="com.sun.jersey.core" />

      <bundle id="com.sun.jersey.contribs.jersey-apache-client" />

      <bundle id="com.sun.jersey.bundle" />   

      <bundle id="com.sun.jersey.json" />

      <bundle id="com.sun.jersey.jersey-server" />

4. These jars are added in lib of my service jar also

5. In development set up, it is working fine. These jars are added in server/repository/usr folder of the machine.

6. Bundle-ClassPath is not included in the manifest file of my service jar. The file is attached.

 

 

  Error while deploying the plugin package::

 

 

    [2014-09-05 00:58:23.549] [ERROR]  Connection(9)-192.168.1.101  org.eclipse.virgo.medic.eventlog.default                         DE0002E Installation of bundle 'com.sun.jersey.client' version '1.17.0' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.sun.jersey.client' at version '1.17.0': Cannot resolve: com.sun.jersey.client

    Resolver report:

        An Import-Package could not be resolved. Resolver error data <Import-Package: com.sun.jersey.core.spi.component; version="1.17.0">. Caused by missing constraint in bundle <com.sun.jersey.client_1.17.0>

             constraint: <Import-Package: com.sun.jersey.core.spi.component; version="1.17.0">

 

 

I have many such 3rd party jars to be added in my project.

Please tell me what I am missing.


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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