VMware {code} Community
hunguyen
Contributor
Contributor
Jump to solution

Error deploying vsphere-wssdk-provider service sample

While other service samples were imported and deplayed OK, VSPHERE-WSSDK-PROVIDER generated this error:

[2013-01-15 16:17:24.489] [ERROR] TCP Connection(64)-127.0.0.1   Install failed for bundle 'com.vmware.samples.wssdkprovider' version '1.0.0'.  [2013-01-15 16:17:24.499] [ERROR] TCP Connection(64)-127.0.0.1   Unable to install application from URI 'file:/C:/VMware/vSphereWebClient/server/stage/vsphere-wssdk-provider.jar'. Cannot satisfy constraints for bundle 'com.vmware.samples.wssdkprovider' version '1.0.0'. Cannot resolve: com.vmware.samples.wssdkprovider     Resolver report:         An Import-Package could not be resolved. Caused by missing constraint in bundle              constraint: . org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.vmware.samples.wssdkprovider' at version '1.0.0': Cannot resolve: com.vmware.samples.wssdkprovider     Resolver report:         An Import-Package could not be resolved. Caused by missing constraint in bundle              constraint:       at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45)      at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)      at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72)      at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)      at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)      at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)      at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:285)      at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:164)      at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:136)      at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:203)      at org.eclipse.virgo.kernel.deployer.management.StandardDeployer.deploy(StandardDeployer.java:52)      at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)      at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:167)      at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:96)      at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:33)      at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)      at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)      at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1454)      at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:74)      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1295)      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1387)      at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:818)      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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)      at sun.rmi.transport.Transport$1.run(Transport.java:159)      at java.security.AccessController.doPrivileged(Native Method)      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)      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)

0 Kudos
1 Solution

Accepted Solutions
laurentsd
VMware Employee
VMware Employee
Jump to solution

Did you follow the instructions for that sample? (located in vsphere-client-sdk/docs/samples-doc/vsphereviews.html#vsphere-ui)

This sample uses the VMware's WSSDK library vim25.jar, located in /vsphereviews/vsphere-wssdk-provider/lib. In order for the Virgo server to load this library during development it must be copied first in the /server/repository/usr directory, see the FAQ "How to use 3rd party libraries" for details. (The other library, commons-logging-1.1.1.jar is already part of the Virgo repository.)

View solution in original post

0 Kudos
2 Replies
laurentsd
VMware Employee
VMware Employee
Jump to solution

Did you follow the instructions for that sample? (located in vsphere-client-sdk/docs/samples-doc/vsphereviews.html#vsphere-ui)

This sample uses the VMware's WSSDK library vim25.jar, located in /vsphereviews/vsphere-wssdk-provider/lib. In order for the Virgo server to load this library during development it must be copied first in the /server/repository/usr directory, see the FAQ "How to use 3rd party libraries" for details. (The other library, commons-logging-1.1.1.jar is already part of the Virgo repository.)

0 Kudos
hunguyen
Contributor
Contributor
Jump to solution

Thanks. It is well documented as you explained.

0 Kudos