Hello guys,
Here in company we are facing a weird problem in a web application. It uses Spring 3.0.0.RELEASE to dependency injection and transaction management (with Hibernate).
At deploying the WAR in a new server (Debian Squeeze 64 bits, JRE 1.5, JBoss 4.2.3.GA) occurs an error of Circular Reference in the creation of some Beans.
The weird thing is that if we use the same WAR file and deploy it to the same JBoss (copied from this server) in our work stations (Windows XP 32 bits) or in another server (Debian Lenny 32 bits), it works! JBoss deploys correctly and it is possible to access the application.
We believe that the problem is the ambience, mainly Debian Squeeze 64 bits.
Server 1) Debian Squeeze 64 bits, JRE 1.5 (both 32 and 64 bits), JBoss 4.2.3.GA, 4GB RAM
Server 2) Debian Lenny 32 bits, JRE 1.5 32 bits, JBoss 4.2.3.GA, 2GB RAM
The server 1 is virtualized in XenServer 6.0.2 and the server 2 is virtualized in VMWare Server 2.
Does anybody passed through this kind of problem?
PS: Stacktrace cut because of the post length limitations of the forum.Code:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parecerBO' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/bo/impl/ParecerBO.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildTemplateParecerBO' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/bo/impl/BuildTemplateParecerBO.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'definedLanguage' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/util/DefinedLanguage.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:309) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) ... 100 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildTemplateParecerBO' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/bo/impl/BuildTemplateParecerBO.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'definedLanguage' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/util/DefinedLanguage.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) ... 106 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'definedLanguage' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/util/DefinedLanguage.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) ... 114 more Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) ... 122 more
Thank you very much!
Best Regards,
Thiago Colebrusco


Reply With Quote
