解决方案 »
- 严重: Servlet.service() for servlet jsp threw exception页面访问出错!!!求解决方法!
- hibernate注解问题 急啊!!!online for answer!
- 一个排序问题
- 请求指导小弟
- webwork 翻页该如何实现比较合理?希望能给出代码参考一下.
- 关于struts的国际化问题,可以让用户自己选择语系吗?
- 请问如何用delphi开发j2ee
- 安装时j2sdk1.4 for linux时提示/tmp空间不够怎么解决?
- JSP调EJB出问题,英雄救命!!!
- 老天,一个HELLOWORLD的EJB整整搞了一天,还好,没崩溃,散分!
- 在linux的tomcat上运行报错 The web application [] registered the JDBC driver but failed
- 实体类之间的转换
nested exception is org.hibernate.InvalidMappingException: Unable to read XML初步判断是你的applicationContext.xml文件配置有问题。
再往前面看到Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: 可能是你的'sessionFactory' 配置有问题。贴出你的配置文件内容看看
hibernate映射文件出错!不知道楼主怎么配的?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replayDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'subItemDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TopicDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [java.lang.Object] is defined: expected single matching bean but found 25: org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,itemDao,replayDao,subItemDao,TopicDao,userService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataSource,sessionFactory,txManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor,environment,systemProperties,systemEnvironment,org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry,messageSource,applicationEventMulticaster
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)