首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

ssh整合有关问题求教

2012-05-10 
ssh整合问题求教2012-05-05 20:24:34,472 DEBUG [org.springframework.context.annotation.ClassPathBeanD

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


Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
... 35 more
五月 05, 2012 8:24:36 下午 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/ccav' 的 Mojarra 2.0.3 (FCS b03)
严重: The web application [/ccav] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@a2ba3c3]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.














莫名其妙说少一堆jar我都有啊

[解决办法]
这个错误大致是说不能创建相关的bean 请楼主仔细检查一下 spring 的配置文件 是否配置正确
[解决办法]
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.1.jar
包没有吧。

热点排行