Upon upgrade of spring from rc2 to rc3, I get the following problem with the below configurationCode: lt;bean id=quot;transactionManagerquot; class=quot;org..orm.jpa.JpaTransactionManagerquot; lazy-init=quot;falsequot;gt; lt;property name=quot;entityManagerFactoryquot; ref=quot;emf.Mainquot; /gt; lt;property name=quot;dataSourcequot; ref=quot;ds.Jdbcquot; /gt; lt;property name=quot;jpaDialectquot;gt;lt;bean class=quot;org..orm.jpa.vendor.HibernateJpaDialectquot; /gt; lt;/propertygt; lt;/beangt;
lt;tx:annotation-driven /gt;
Code:
org..beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'transactionManager': Bean with name 'transactionManager' has been injected into other beans [(inner bean)] in its raw version as part of a circular reference, but has eventually been wrapped (for example as part of auto-proxy creation). This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example. at org..beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:418) at org..beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242) at org..beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org..beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239) at org..beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155) at org..beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:303) at org..context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348) at org..web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) at org..web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org..web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org..web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
Bug? Something I'm doing wrong? One way or the other, what's the regression path for this - it worked just fine in rc2. |