Announcement Announcement Module
Collapse
No announcement yet.
Spring Action Script Integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Action Script Integration

    Hi Am new to Springs concept,
    am trying to integrate my Flex Application with Spring Framework,My Spring Service Layer is communicating successfully with Flex,but some where the connectivity between Service and DAO layers is missing. when I deploy the App in Tomcat it throws the below error.I have used the required Annotations in DAO like '@Component',I also used <context:component-scan base-package="com.gcds.service" />

    SEVERE: Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
    h name 'getTabObjService': Injection of autowired dependencies failed; nested ex
    ception is org.springframework.beans.factory.BeanCreationExce ption: Could not au
    towire field: com.gcds.dao.GetTabObjDao com.gcds.service.GetTabObjServ
    ice.getTabObjDao; nested exception is org.springframework.beans.factory.BeanCrea
    tionException: Error creating bean with name 'getTabObjDao' defined in ServletCo
    ntext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to be
    an 'dataSource' while setting bean property 'dataSource'; nested exception is or
    g.springframework.beans.factory.BeanCreationExcept ion: Error creating bean with
    name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContex
    t.xml]: Error setting property values; nested exception is org.springframework.b
    eans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationExceptio n:
    Property 'driverClassName' threw exception; nested exception is java.lang.Illega
    lStateException: Could not load JDBC driver class [oracle.jdbc.driver.OracleDriv
    er]
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanP
    ostProcessor.postProcessPropertyValues(AutowiredAn notationBeanPostProcessor.java
    :286)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:1064)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFa ctory.java:517)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getOb
    ject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistr
    y.getSingleton(DefaultSingletonBeanRegistry.java:2 22)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBe
    an(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactor y.java:563)
    at org.springframework.context.support.AbstractApplic ationContext.finish
    BeanFactoryInitialization(AbstractApplicationConte xt.java:872)
    at org.springframework.context.support.AbstractApplic ationContext.refres
    h(AbstractApplicationContext.java:423)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
    text(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.init WebApplicationConte
    xt(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
    zed(ContextLoaderListener.java:47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
    t.java:4206)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
    705)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
    .java:799)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:77
    9)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:601)

    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:943)

    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:778
    )
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:504
    )
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
    :324)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
    eSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1065)

    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1057)

    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:463
    )
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:5
    25)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:754
    )
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Could not au
    towire field: com.bofa.gcds.dao.GetTabObjDao com.bofa.gcds.service.GetTabObjServ
    ice.getTabObjDao; nested exception is org.springframework.beans.factory.BeanCrea
    tionException: Error creating bean with name 'getTabObjDao' defined in ServletCo
    ntext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to be
    an 'dataSource' while setting bean property 'dataSource'; nested exception is or
    g.springframework.beans.factory.BeanCreationExcept ion: Error creating bean with
    name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContex
    t.xml]: Error setting property values; nested exception is org.springframework.b
    eans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationExceptio n:
    Property 'driverClassName' threw exception; nested exception is java.lang.Illega
    lStateException: Could not load JDBC driver class [oracle.jdbc.driver.OracleDriv
    er]
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanP
    ostProcessor$AutowiredFieldElement.inject(Autowire dAnnotationBeanPostProcessor.j
    ava:507)
    at org.springframework.beans.factory.annotation.Injec tionMetadata.inject
    (InjectionMetadata.java:84)
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanP
    ostProcessor.postProcessPropertyValues(AutowiredAn notationBeanPostProcessor.java
    :283)
    ... 37 more
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creati
    ng bean with name 'getTabObjDao' defined in ServletContext resource [/WEB-INF/ap
    plicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setti
    ng bean property 'dataSource'; nested exception is org.springframework.beans.fac
    tory.BeanCreationException: Error creating bean with name 'dataSource' defined i
    n ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting prope
    rty values; nested exception is org.springframework.beans.PropertyBatchUpdateExc
    eption; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationExceptio n:
    Property 'driverClassName' threw exception; nested exception is java.lang.Illega
    lStateException: Could not load JDBC driver class [oracle.jdbc.driver.OracleDriv
    er]
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java :328)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolv er.java:106)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:1317)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:1076)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.doCreateBean(AbstractAutowireCapableBeanFa ctory.java:517)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFact ory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getOb
    ject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistr
    y.getSingleton(DefaultSingletonBeanRegistry.java:2 22)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBe
    an(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
    (AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    findAutowireCandidates(DefaultListableBeanFactory. java:827)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    doResolveDependency(DefaultListableBeanFactory.jav a:769)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
    resolveDependency(DefaultListableBeanFactory.java: 686)
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanP
    ostProcessor$AutowiredFieldElement.inject(Autowire dAnnotationBeanPostProcessor.j
    ava:478)
    ... 39 more

  • #2
    This forum is for Spring Actionscript use only, I'm afraid that we can't sufficiently assist you with server-side issues,
    perhaps this forum is better suited for your question:

    http://forum.springsource.org/forumdisplay.php?61-Flex

    cheers,
    Roland

    Comment

    Working...
    X