Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Problem with multiple adapters and included Jar file in a service.

$
0
0

Hello All,

 

I am brand new here and I am willing to work with VMWare client sdk. I already started and exported several adapters to implement the whole functionality I need. However, I receive an error:

 

Application context creation failure for bundle 'com.management.serviceprovider' version '1.0.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DatacenterConfig': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.adapters.Datacenter.ClusterConfigAdapterImpl] for bean with name 'ClusterConfigAdapterImpl' defined in URL [bundleentry://281.fwk1147580192/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.adapters.Datacenter.ClusterConfigAdapterImpl not found from bundle [com.management.serviceprovider]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)

at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)

 

...

 

That error occurs very often and it is strange because I setup the whole adapters in a same way. here is the OSGI layer and the bundle contaxt files:

Bundle context:

<bean name="ClusterAdvancedAdapterImpl" class="com.adapters.Datacenter.ClusterAdvancedAdapterImpl">

  <constructor-arg ref="dataServiceExtensionRegistry" />

  </bean>

 

<osgi:service id="DatacenterConfig" ref="ClusterConfigAdapterImpl"

  interface="com.vmware.vise.data.query.PropertyProviderAdapter" />

  <osgi:reference id="dataServiceExtensionRegistry"

  interface="com.vmware.vise.data.query.DataServiceExtensionRegistry" />

 

And I really do not know why it is not work.

 

The second problem is that I have another project with classes and I would like to export them into a jar file. When I do that I also would like to include that jar in the bundle but when I modify the ant file it is not working on virgo.

 

Any help will be appreciated.

 

Regards,

Stefan


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>