1 Reply Latest reply on Jun 18, 2013 6:17 PM by atoka

    Enabling  Script Plug-InSupport in the vSphere Web Client

    atoka Novice

      Can someone tell me the correct way to enabling script Plug-InSupport in the vSphere Web Client? I am confused because there are different steps mentioned in different sources.

      Programming guide mentioned adding "scriptPlugin.enabled = true" to /var/lib/vmware/vsphere-client/webclient.properties file and copying SHA1 thumbprint of the server where the scriptConfig.xml file is located.

      Another source said that we have to convert the old script plug-in’s XML configuration file to new format.

      Other said we only need to add "scriptPlugin.enabled = true" to /var/lib/vmware/vsphere-client/webclient.properties file and everything thing should work fine.

       

      I edited the /var/lib/vmware/vsphere-client/webclient.properties file and added "scriptPlugin.enabled = true", restarted my vCenter Server and then registered my old plug-in using vSphere SDK but I don't see "Classic Solution" tab.

      I also see a error log entry in vsphere_client_virgo.log file as below.

       

      I checked  /var/lib/vmware/vsphere-client/script-plugin-packages/com.vmware.vim.viClientScripts/com.myplugin.myplugin-2.0.0.0 folder and it does exits but plugin-package.xml and plugins/plugin.xml are both empty file.

       

       

      [2013-06-14 00:04:56.525] ERROR [ERROR] session-init-pool-1720   D338C5762151A41AD82C59B5C921CAB0 com.vmware.vise.extensionfw.ExtensionManager                  Error retrieving deployment data for the plugin package at /var/lib/vmware/vsphere-client/script-plugin-packages/com.vmware.vim.viClientScripts/com.myplugin.myplugin-2.0.0.0 java.io.IOException: org.xml.sax.SAXParseException: Premature end of file.
          at com.vmware.vise.extensionfw.impl.PackageManifestParser.parse(PackageManifestParser.java:66)
          at com.vmware.vise.extensionfw.ExtensionManager.getPackageDeployData(ExtensionManager.java:863)
          at com.vmware.vise.extensionfw.ExtensionManager.addPluginPackages(ExtensionManager.java:274)
          at com.vmware.vise.extensionfw.impl.ExtensionServiceImpl.addPluginPackages(ExtensionServiceImpl.java:122)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
          at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
          at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
          at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
          at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
          at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
          at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
          at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
          at $Proxy249.addPluginPackages(Unknown Source)
          at com.vmware.vise.vim.extension.VcScriptPluginManager.addPackages(VcScriptPluginManager.java:374)
          at com.vmware.vise.vim.extension.VcScriptPluginManager.sessionStarted(VcScriptPluginManager.java:168)
          at com.vmware.vise.security.DefaultAuthenticationProvider$1.call(DefaultAuthenticationProvider.java:399)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:662)

      Caused by: org.xml.sax.SAXParseException: Premature end of file.

          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
          at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
          at com.vmware.vise.extensionfw.impl.PackageManifestParser.parse(PackageManifestParser.java:63)
          ... 29 common frames omitted
        • 1. Re: Enabling  Script Plug-InSupport in the vSphere Web Client
          atoka Novice

          Any help will be appreciated.

           

          More virgo log entires:

           

          [2013-06-19 01:09:46.671] INFO  [INFO ] session-init-pool-5      A57329FD55F3F2878078C6F49E8ABFAA com.vmware.vise.vim.commons.i18n.CatalogManager               Loading catalog '/catalog/en/locmsg.vmsg' from '/var/lib/vmware/vsphere-client/catalog//VirtualCenter/5.1.0/en/vim/locmsg_6f7ef6ea236dd742b8682a16e284451a.vmsg'
          [2013-06-19 01:09:46.674] INFO  [INFO ] session-init-pool-5      A57329FD55F3F2878078C6F49E8ABFAA com.vmware.vise.vim.commons.i18n.CatalogManager               Loading catalog '/catalog/en/question.vmsg' from '/var/lib/vmware/vsphere-client/catalog//VirtualCenter/5.1.0/en/vim/question_e2427c7932f0e4729c58c4dd09137cfd.vmsg'
          [2013-06-19 01:09:46.684] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                    java.util.NoSuchElementException
          [2013-06-19 01:09:46.685] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.util.Scanner.throwFor(Unknown Source)
          [2013-06-19 01:09:46.685] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.util.Scanner.next(Unknown Source)
          [2013-06-19 01:09:46.685] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at com.vmware.vise.vim.extension.VcScriptPluginManager.downloadPackage(VcScriptPluginManager.java:519)
          [2013-06-19 01:09:46.685] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at com.vmware.vise.vim.extension.VcScriptPluginManager.addPackages(VcScriptPluginManager.java:369)
          [2013-06-19 01:09:46.686] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at com.vmware.vise.vim.extension.VcScriptPluginManager.sessionStarted(VcScriptPluginManager.java:168)
          [2013-06-19 01:09:46.686] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at com.vmware.vise.security.DefaultAuthenticationProvider$1.call(DefaultAuthenticationProvider.java:408)
          [2013-06-19 01:09:46.686] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          [2013-06-19 01:09:46.687] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.util.concurrent.FutureTask.run(Unknown Source)
          [2013-06-19 01:09:46.687] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          [2013-06-19 01:09:46.687] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          [2013-06-19 01:09:46.687] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at java.lang.Thread.run(Unknown Source)
          [2013-06-19 01:09:46.694] INFO  [INFO ] session-init-pool-5      A57329FD55F3F2878078C6F49E8ABFAA com.vmware.vise.vim.commons.i18n.CatalogManager               Loading catalog '/catalog/en/host.vmsg' from '/var/lib/vmware/vsphere-client/catalog//VirtualCenter/5.1.0/en/vim/host_0f968adeaad0a8fa35216397bd7fb7a0.vmsg'
          [2013-06-19 01:09:46.702] INFO  [INFO ] session-init-pool-5      A57329FD55F3F2878078C6F49E8ABFAA com.vmware.vise.vim.commons.i18n.CatalogManager               Loading catalog '/catalog/en/auth.vmsg' from '/var/lib/vmware/vsphere-client/catalog//VirtualCenter/5.1.0/en/vim/auth_069c6d4ad4dfd456dab0b74d35f198c3.vmsg'
          [2013-06-19 01:09:46.706] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                    [Fatal Error] :1:1: Premature end of file.
          [2013-06-19 01:09:46.707] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA com.vmware.vise.util.XMLUtil                                  Error when loading xml string org.xml.sax.SAXParseException: Premature end of file.
              at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
              at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
              at com.vmware.vise.util.XMLUtil.parseXml(XMLUtil.java:186)
              at com.vmware.vise.vim.extension.VcScriptPluginManager.downloadPackage(VcScriptPluginManager.java:524)
              at com.vmware.vise.vim.extension.VcScriptPluginManager.addPackages(VcScriptPluginManager.java:369)
              at com.vmware.vise.vim.extension.VcScriptPluginManager.sessionStarted(VcScriptPluginManager.java:168)
              at com.vmware.vise.security.DefaultAuthenticationProvider$1.call(DefaultAuthenticationProvider.java:408)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)

           

          [2013-06-19 01:09:46.707] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA com.vmware.vise.vim.extension.VcScriptPluginManager           An exception caused by the script plugin xml transformer:
          [2013-06-19 01:09:46.708] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                    java.lang.NullPointerException
          [2013-06-19 01:09:46.708] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at com.vmware.vise.vim.extension.ScriptPluginXmlTransformer.processXml(ScriptPluginXmlTransformer.java:245)
          [2013-06-19 01:09:46.708] ERROR [ERROR] session-init-pool-9      A57329FD55F3F2878078C6F49E8ABFAA System.err                                                            at com.vmware.vise.vim.extension.VcScriptPluginManager.downloadPackage(VcScriptPluginManager.java:527)