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

  • BeanCreationException

    I have deployed my application EAR on WAS 6.1 server (UNIX environment). When I start the server I get the following exception:

    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'rateServiceHelper': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private com.xyz.gtw.common.service.CommonService com.xyz.gtw.rateserver.service.RateServiceHelper.c ommonService; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'commonService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private com.xyz.gtw.scheduler.service.SchedulerService com.xyz.gtw.common.service.CommonServiceImpl.sched ulerService; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'schedulerService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private org.quartz.Scheduler com.xyz.gtw.scheduler.service.SchedulerServiceImpl .lfScheduler; nested exception is org.springframework.beans.factory.BeanCurrentlyInC reationException: Error creating bean with name 'lfSchedulerFactory': FactoryBean which is currently in creation returned null from getObject
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanPostProcessor.postProcessPropert yValues(AutowiredAnnotationBeanPostProcessor.java: 286)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1064)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:517)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.findAutowireCandidates(DefaultL istableBeanFactory.java:838)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.doResolveDependency(DefaultList ableBeanFactory.java:780)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.resolveDependency(DefaultListab leBeanFactory.java:697)
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanPostProcessor$AutowiredFieldElem ent.inject(AutowiredAnnotationBeanPostProcessor.ja va:478)
    ... 44 more


    The same application EAR works absolutely fine in WAS 6.1(Windows Environment) and also Tomcat 6.0 server.


    What could be the possible cause of this exception ?

    I have added all of following to my spring.xml

    <context:spring-configured />
    <context:annotation-config />
    <context:component-scan base-package="com.xyz.gtw" />

    Please help ... this is urgent.
    Thanks in advance.
Working...
X