日期:2014-05-19  浏览次数:20749 次

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