当前位置: 代码迷 >> J2EE >> ssh整合有关问题求教
  详细解决方案

ssh整合有关问题求教

热度:121   发布时间:2016-04-22 01:31:42.0
ssh整合问题求教
2012-05-05 20:24:34,472 DEBUG [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] Identified candidate component class: file [D:\apache-tomcat-7.0.26\webapps\ccav\WEB-INF\classes\com\ccav\service\impl\NewsMainServiceImpl.class]
2012-05-05 20:24:34,489 DEBUG [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] Identified candidate component class: file [D:\apache-tomcat-7.0.26\webapps\ccav\WEB-INF\classes\com\ccav\hibernate4\EntityManagerImpl.class]
2012-05-05 20:24:35,005 WARN [org.springframework.core.type.classreading.AnnotationAttributesReadingVisitor] Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.testng.annotations.BeforeTest

2012-05-05 20:24:35,009 WARN [org.springframework.core.type.classreading.AnnotationAttributesReadingVisitor] Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.testng.annotations.AfterTest

2012-05-05 20:24:35,014 WARN [org.springframework.core.type.classreading.AnnotationAttributesReadingVisitor] Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.junit.Before

2012-05-05 20:24:35,016 WARN [org.springframework.core.type.classreading.AnnotationAttributesReadingVisitor] Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.junit.After

2012-05-05 20:24:36,671 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newsMainDao' defined in file [D:\apache-tomcat-7.0.26\webapps\ccav\WEB-INF\classes\com\ccav\dao\impl\NewsMainDaoImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ccav.dao.impl.NewsMainDaoImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ccav.dao.impl.NewsMainDaoImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
... 26 more
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

五月 05, 2012 8:24:36 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newsMainDao' defined in file [D:\apache-tomcat-7.0.26\webapps\ccav\WEB-INF\classes\com\ccav\dao\impl\NewsMainDaoImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ccav.dao.impl.NewsMainDaoImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ccav.dao.impl.NewsMainDaoImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
  相关解决方案