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 |