2

这不是与代码相关的问题- 因为它确实适用于其他环境。

我出现的问题是

24 maj 2013 10:52:18:762 ERROR [main] [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.my.code.DirectoryManager': Bean with name 'com.my.code.DirectoryManager' has been injected into other beans [com.my.code.CustomerManager,com.my.code.ProjectManager] in its raw version as part of a circular reference, but has eventually been wrapped. 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.

有趣的事实是,同样的代码也适用于其他环境。Java版本相同(jdk 1.6.33 x64)类路径中还有cglib.jar。环境变量是一样的。作为容器,我使用 tomcat 6.0.18。操作系统是 Centos 5.6 x64 有可用空间和可用内存。我没有搞砸 jvm 选项。

你们中有人见过这样的问题吗?我还能检查什么?大多数已解决的问题(我能够解决)与代码相关,但这不是代码

4

0 回答 0