Highlighted
Enthusiast
Enthusiast

Ds.properties file error while running vSphere Web Client HTML plugin

Hello,

Here is my configuration:

1. vSphere Web Client SDK 6.0 Update 1

2. JDK 1.7.0_79 64 bit

3. Eclipse Juno SR 1 64 bit

I am following the documentation to create the HTML plugin and run into this error regarding ds.properties file missing. SDK Setup does not mention about this file. Please let me know how to fix it.

Here is the error from logs

Caused by: com.vmware.cis.data.service.exception.ConfigurationInitializationException: Cannot load properties file: C:\ProgramData\VMware\vSphere Web Client\config\ds.properties

  at com.vmware.cis.data.service.ServiceConfigurationImpl.loadDsConfigProperties(ServiceConfigurationImpl.java:183)

  at com.vmware.cis.data.service.ServiceConfigurationImpl.doInitializeConfiguration(ServiceConfigurationImpl.java:74)

  at com.vmware.cis.data.service.ServiceConfigurationImpl.initializeOnce(ServiceConfigurationImpl.java:69)

  at com.vmware.cis.data.service.ServiceConfigurationImpl.getSolutionKey(ServiceConfigurationImpl.java:57)

  at com.vmware.cis.data.service.session.StsClientFactoryImpl.getConfirmationKey(StsClientFactoryImpl.java:69)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

  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.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

  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 com.sun.proxy.$Proxy271.getConfirmationKey(Unknown Source)

  at com.vmware.ph.ceip.impl.SolutionUserActor.createClientSession(SolutionUserActor.java:191)

  at com.vmware.ph.ceip.impl.SolutionUserActor.readConsent(SolutionUserActor.java:92)

  at com.vmware.ph.ceip.impl.CeipApiImpl.readFromDBIfNotInitialized(CeipApiImpl.java:185)

  at com.vmware.ph.ceip.impl.CeipApiImpl.isConsentAccepted(CeipApiImpl.java:59)

  at com.vmware.ph.ceip.impl.CeipConfigProviderImpl.isCeipEnabled(CeipConfigProviderImpl.java:28)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

  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.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

  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 com.sun.proxy.$Proxy282.isCeipEnabled(Unknown Source)

  at com.vmware.vsphere.client.telemetry.ph.impl.TelemetryPhLogger.isCeipEnabled(TelemetryPhLogger.java:78)

  at com.vmware.vsphere.client.telemetry.impl.TelemetryLoggingServiceImpl.isEnabled(TelemetryLoggingServiceImpl.java:36)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

  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.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

  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 com.sun.proxy.$Proxy305.isEnabled(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

  ... 48 common frames omitted

Caused by: java.io.IOException: The properties file does not exist: C:\ProgramData\VMware\vSphere Web Client\config\ds.properties

  at com.vmware.vise.util.FileUtil.loadProperties(FileUtil.java:377)

  at com.vmware.cis.data.service.ServiceConfigurationImpl.loadDsConfigProperties(ServiceConfigurationImpl.java:181)

  ... 118 common frames omitted

Thanks,
Pankaj

0 Kudos
3 Replies
Highlighted
Enthusiast
Enthusiast

Hello,

Found the issue. There is ds.properties on the vCenter Server (on Windows for me). I copied it to the below location and error is resolved. Plugin is working now.

Please add to SDK setup documentation.

This issue can be closed.


Thanks,,
Pankaj

0 Kudos
Highlighted
Enthusiast
Enthusiast

Hi Pankaj,

Could you post the content of ds.properties here. I ran into the same problem but vCenter 6 on Windows I could not find the ds.properties

Thanks

0 Kudos
Highlighted
VMware Employee
VMware Employee

Hi,

The dev-setup scripts from 6.0.2 release now generate the ds.properties file. It still requires adding some properties manually as described in the 6.0.2 release notes.

It should look like this:

service.homeLdu = d5432fd0-dbe3-11e5-9f53-012356965cab
solutionUser.keyAlias = vsphere-webclient
solutionUser.keyStoreName = vsphere-webclient
solutionUser.keyStorePath=C:/ProgramData/VMware/vSphere Web Client/store.jks (or /var/lib/vmware/vsphere-client/store.jks on MacOS)
solutionUser.keyStorePassword=vmw@re
lookupService=https://YOUR_VCENTER_IP/lookupservice/sdk


Cheers,

Vladimir

0 Kudos