Announcement Announcement Module
Collapse
No announcement yet.
NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined

    Hi,

    After upgrading from Grails 1.2.2 to 2.1.1 I start getting the following error.
    However the bean specified is defined in another file db-standalone-context.xml.

    Do anyone have an idea what could be the problem?

    Thanks,
    Shai



    org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'transactionManager' is defined
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.getBeanDefinition(DefaultListab leBeanFactory.java:553)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getMergedLocalBeanDefinition(AbstractB eanFactory.java:1095)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:277 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:269 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.transaction.interceptor.Transa ctionAspectSupport.determineTransactionManager(Tra nsactionAspectSupport.java:249)
    at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:100)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.framework.Cglib2AopProxy$D ynamicAdvisedInterceptor.intercept(Cglib2AopProxy. java:622)
    at com.artocam.harmony.ems.svc.EMSTopologyServiceImpl $$EnhancerByCGLIB$$f61e5cad.getAllElementsByParent (<generated>)
    at com.artocam.harmony.ems.svc.DashBoardService.initN etworkHosts(DashBoardService.java:202)
    at com.artocam.harmony.ems.svc.DashBoardService.initC hartStaticData(DashBoardService.java:185)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.beans.factory.annotation.InitD estroyAnnotationBeanPostProcessor$LifecycleElement .invoke(InitDestroyAnnotationBeanPostProcessor.jav a:346)
    at org.springframework.beans.factory.annotation.InitD estroyAnnotationBeanPostProcessor$LifecycleMetadat a.invokeInitMethods(InitDestroyAnnotationBeanPostP rocessor.java:299)
    at org.springframework.beans.factory.annotation.InitD estroyAnnotationBeanPostProcessor.postProcessBefor eInitialization(InitDestroyAnnotationBeanPostProce ssor.java:132)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyBeanPostProcessors BeforeInitialization(AbstractAutowireCapableBeanFa ctory.java:394)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1448)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
    at org.codehaus.groovy.grails.commons.spring.ReloadAw areAutowireCapableBeanFactory.doCreateBean(ReloadA wareAutowireCapableBeanFactory.java:126)
    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 94)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
    ....

  • #2
    The problem was solved after fixing a few grails plugin initialization problems.

    Cheers,
    Shai

    Comment

    Working...
    X