ssh整合问题求教

sohog 2012-05-05 08:29:02
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我都有啊
...全文
565 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hllfl 2012-05-05
  • 打赏
  • 举报
回复
一堆jar包缺少
ETCentury 2012-05-05
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory应该是说找不到类,这个类的jar包不存在造成的,楼主加上slf4j-api-*.jar这个jar包就行了(*指的是版本号)。
[/Quote]
+1
渭水飞熊 2012-05-05
  • 打赏
  • 举报
回复
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory应该是说找不到类,这个类的jar包不存在造成的,楼主加上slf4j-api-*.jar这个jar包就行了(*指的是版本号)。
cseu 2012-05-05
  • 打赏
  • 举报
回复
真的有吗?你到最终部署的目录/包里看看有没有

67,550

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧