java菜鸟求助,,编译代码时出现这种错误,求高手解答!
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.monster.action.MonsterAction com.yayo.warriors.module.monster.facade.impl.MonsterFacadeImpl.monsterAction; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monsterAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.common.helper.WorldPusherHelper com.yayo.warriors.module.monster.action.MonsterAction.worldPusherHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldPusherHelper': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.common.helper.VOFactory com.yayo.warriors.common.helper.WorldPusherHelper.voFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'VOFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.team.facade.TeamFacade com.yayo.warriors.common.helper.VOFactory.teamFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teamFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.user.manager.UserManager com.yayo.warriors.module.team.facade.impl.TeamFacadeImpl.userManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.onhook.facade.TrainFacade com.yayo.warriors.module.user.manager.impl.UserManagerImpl.trainFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trainFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.map.facade.MapFacade com.yayo.warriors.module.onhook.facade.impl.TrainFacadeImpl.mapFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.event.EnterScreenReceiver com.yayo.warriors.module.map.facade.impl.MapFacadeImpl.enterScreenReceiver; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterScreenReceiver': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.user.facade.UserFacade com.yayo.warriors.event.EnterScreenReceiver.userFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.admin.facade.AdminFacade com.yayo.warriors.module.user.facade.impl.UserFacadeImpl.adminFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.onlines.manager.OnlineStatisticManager com.yayo.warriors.module.admin.facade.impl.AdminFacadeImpl.onlineStatisticManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'onlineStatisticManagerImpl': Invocation of init method failed; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connectionat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
... 54 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monsterAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.common.helper.WorldPusherHelper com.yayo.warriors.module.monster.action.MonsterAction.worldPusherHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worldPusherHelper': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.common.helper.VOFactory com.yayo.warriors.common.helper.WorldPusherHelper.voFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'VOFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.team.facade.TeamFacade com.yayo.warriors.common.helper.VOFactory.teamFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teamFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.user.manager.UserManager com.yayo.warriors.module.team.facade.impl.TeamFacadeImpl.userManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.onhook.facade.TrainFacade com.yayo.warriors.module.user.manager.impl.UserManagerImpl.trainFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trainFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.map.facade.MapFacade com.yayo.warriors.module.onhook.facade.impl.TrainFacadeImpl.mapFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.event.EnterScreenReceiver com.yayo.warriors.module.map.facade.impl.MapFacadeImpl.enterScreenReceiver; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterScreenReceiver': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.user.facade.UserFacade com.yayo.warriors.event.EnterScreenReceiver.userFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.admin.facade.AdminFacade com.yayo.warriors.module.user.facade.impl.UserFacadeImpl.adminFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.onlines.manager.OnlineStatisticManager com.yayo.warriors.module.admin.facade.impl.AdminFacadeImpl.onlineStatisticManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'onlineStatisticManagerImpl': Invocation of init method failed; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
还有一大串写不上来。求高手帮我看看,后面还有,贴不上。。我QQ 32633372 求高手! java --------------------编程问答-------------------- 把你的包名改了。看看是不是设置了敏感字,举个例子:包名不能设置为 java.**** 其实我对这段英文看的也不是很明白。你试试看。。 --------------------编程问答-------------------- 很可能是下列 class 没有打包:
com.yayo.warriors.module.monster.action.MonsterAction
com.yayo.warriors.module.monster.facade.impl.MonsterFacadeImpl.monsterAction
--------------------编程问答-------------------- 擦。。看英语论文都没这长。。。 --------------------编程问答-------------------- BeanCreationException:很明显bean没创建上,不知道你用的什么框架,之前jsf+jpa+spring的时候我出现过这个异常,当时是src下放入 META-INF下放入persistence.xml文件,不知道你的框架不好判断。 --------------------编程问答-------------------- --------------------编程问答--------------------
我没过4级
补充:Java , Eclipse