Refreshing vSphere Web Client Plugin

While debugging a vSphere Web Client plugin project, I found it’s not easy to refresh the services with the Virgo server which acts as the back end for the plugin GUI but as client for the vCenter server. Packaged as OSGi bundle, it’s supposed to be easy to reload the service. Mixed together with various components in the plugins, however, it’s sometimes not quite straight forward for the re-deployment for updated code. Here is a brute force approach I found while playing with it.

First of all, you want to update the file whose link is registered in the plugin extension. If you use Tomcat as your server, the location could be a sub-directory under the /var/lib/tomcat7/webapps/ directory. You could change the plugin version (including build number) and make the vCenter to download the file again. If you don’t want to do it, you can go ahead and login into vCenter appliance for the following actions.

Lost VMs or Containers? Too Many Consoles? Too Slow GUI? Time to learn how to "Google" and manage your VMware and clouds in a fast and secure HTML5 App.

# ls /usr/lib/vmware-vsphere-client/server/work/org.eclipse.virgo.kernel.deployer_3.0.3.RELEASE/staging/global/bundle/

In the directory, locate the sub directory for your plugin service and delete it completely using “rm -fr ” command. Don’t delete anything else that does not belong to your plugin, or you risk ruin other plugins.

Then, go to the another directory and something similar.

# ls /var/lib/vmware/vsphere-client/vc-packages/vsphere-client-serenity/

Now, the related files are removed. However the OSGi bundle is still loaded. I remember there are commands to reload a bundle for a typical container. An easy way is just to restart the client as follows. It may take more than one minute for the GUI to load after you see the console message the service has been started. Just be patient.

# service vsphere-client restart
This entry was posted in Software Development, Virtualization and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted July 10, 2015 at 8:18 pm | Permalink

    It’s really a nice and helpful piece of info. I am glad that you simply shared this useful info with us.

    Please stay us up to date like this. Thanks for sharing.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


    My company has created products like vSearch ("Super vCenter"), vijavaNG APIs, EAM APIs, ICE tool. We also help clients with virtualization and cloud computing on customized development, training. Should you, or someone you know, need these products and services, please feel free to contact me: steve __AT__

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.