Sorry the last email accidentally got sent before I can complete it.

I am facing the below error mentioned

SEVERE: Application context refresh failed
(OsgiBundleXmlApplicationContext(bundle=JdbcService_test,
config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'contactsDao' defined in URL
[bundleentry://3.fwk16197143/META-INF/spring/testConnect.xml]: Error setting
property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'dataSource'
threw exception; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/InitializingBean
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
    at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'dataSource'
threw exception; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/InitializingBean
    at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
    at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
    ... 18 more
Exception in thread "SpringOsgiExtenderThread-4"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'contactsDao' defined in URL
[bundleentry://3.fwk16197143/META-INF/spring/testConnect.xml]: Error setting
property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'dataSource'
threw exception; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/InitializingBean
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
    at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'dataSource'
threw exception; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/InitializingBean
    at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
    at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
    ... 18 more


On Mon, Jul 4, 2011 at 6:09 PM, Kapoor <[email protected]> wrote:

> Hi All,
>
> Could anyone be kind enough to explain where i am going wrong.
> Below is the output of bundles in framework
>
> Framework is launched.
>
> id    State       Bundle
> 0    ACTIVE      org.eclipse.osgi_3.6.2.R36x_v20110210
> 1    ACTIVE      org.springframework.transaction_2.5.6
> 2    ACTIVE      org.springframework.osgi.extender_1.2.1
> 3    ACTIVE      org.apache.commons.logging_1.0.4.v201005080501
> 4    ACTIVE      org.springframework.test_2.5.6.SEC01
> 5    ACTIVE      org.springframework.jdbc_2.5.6
> 6    ACTIVE      com.springsource.org.aopalliance_1.0.0
> 7    ACTIVE      org.eclipse.osgi.services_3.2.100.v20100503
> 8    ACTIVE      org.springframework.osgi.io_1.2.1
> 9    RESOLVED    MySql_Driver_1.0.0.qualifier
>                 Master=13
> 10    ACTIVE      org.springframework.context_2.5.6.SEC01
> 11    ACTIVE      org.springframework.core_2.5.6.SEC01
> 12    ACTIVE      org.springframework.beans_2.5.6.SEC01
> 13    ACTIVE      com.springsource.org.apache.commons.dbcp_1.2.2.osgi
>                 Fragments=9
> 14    ACTIVE      testJDBC_1.0.0.qualifier
> 15    ACTIVE      com.springsource.net.sf.cglib_2.1.3
> 16    ACTIVE      org.springframework.aop_2.5.6.SEC01
> 17    ACTIVE      javax.servlet_2.5.0.v200910301333
> 18    ACTIVE      org.springframework.osgi.core_1.2.1
> 19    ACTIVE      com.springsource.org.objectweb.asm_2.2.3
> 20    ACTIVE      com.springsource.org.apache.commons.pool_1.5.3
>
>
> As per above output will bundle 13 have access to the Mysql Driver class ?
>
> As per my understanding fragments bundle classes can be accessed by the
> host bundle
>
> Please correct me if i am wrong.
>
>
> The reason i am asking the above is, I am facing class
>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to