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

NoClassDefFoundError (wrong name) for third party jar

$
0
0

Hi,

We have a html and java plugin which uses some third party jar libraries. We converted these jars to OSGi bundle. When virgo server is launched from eclipse (localhost:9443), the plugin works fine. The problem is when plugin is installed on a vcenter and launched from webclient connected to vcenter(vCenterDNS:9443), a NoClassDefFoundError thirdParty/pkg/C (wrong name: thirdParty/pkg/c) error is thrown as seen in virgo server logs (for a class in third party jar). All import-package, export-package statements look fine.

I am wondering why this works in development environment but not in vcenter?

One difference I notice is, in development environment, I place the jars in vsphere-client-sdk\server\repository\usr\ directory and also project buildpath points to it. In vcenter I see the jars at C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client\vc-packages\vsphere-client-serenity\myPlugin-1.0.0.0\ and I find the extracted jar at  C:\Program Files\VMware\vCenter Server\WebClient\server\work\deployer\s\global\125. Development environment doesn't have any extracted copy of the jar in global directory.


Viewing all articles
Browse latest Browse all 2218

Latest Images

Trending Articles



Latest Images

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