spring集成struts时候出现的问题

来源:百度知道 编辑:UC知道 时间:2024/05/27 18:23:39
WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
log4j:WARN Please initialize the log4j system properly.
2009-8-10 19:11:12 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2009-8-10 19:11:21 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 'productTypeServiceBean': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.springframework.orm.jpa.support.Pe

应该是你在整合ssh的时候jar之间有冲突,在WEB-INF/lib下缺少log4j.jarl两个jar文件,你copy两个jar文件到WEB-INF/lib下,应该就可以了;还有可能是其他原因,异常里面还有这个name 'productTypeServiceBean',应该是你在配置spring的时候 bean 标签的问题!