从CSDN上找一个SpringMVC自学,可是报错了 不知那位大虾有这方面的案例发我一个,谢谢了。在学这,可是无一点头绪啊 求 求 求.........
ramework.beans.factory.support.DefaultListableBeanFactory@6a6484: defining beans [dataSource,sessionFactory,transactionManager,articleDao,propertyConfigurer,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,articleService]; root of factory hierarchy
2012-8-31 10:58:41 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/modules/applicationContext_dao.xml]: Unsatisfied dependency expressed through bean property 'logWriter': : Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/modules/applicationContext_dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/modules/applicationContext_dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw
ramework.beans.factory.support.DefaultListableBeanFactory@6a6484: defining beans [dataSource,sessionFactory,transactionManager,articleDao,propertyConfigurer,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,articleService]; root of factory hierarchy
2012-8-31 10:58:41 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/modules/applicationContext_dao.xml]: Unsatisfied dependency expressed through bean property 'logWriter': : Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/modules/applicationContext_dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/modules/applicationContext_dao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货