ssh整合服务器启动异常问题 5
2011-11-213:33:35org.springframework.web.context.ContextLoaderinitWebApplicationConte...
2011-11-2 13:33:35 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
java.lang.IllegalStateException: @Resource annotation requires a single-arg method: public org.springframework.orm.hibernate3.HibernateTemplate com.bdqn.oa.dao.impl.UserDaoImpl.getHibernateTemplate()
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$2.doWith(CommonAnnotationBeanPostProcessor.java:374)
2011-11-2 13:33:35 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: @Resource annotation requires a single-arg method: public org.springframework.orm.hibernate3.HibernateTemplate com.bdqn.oa.dao.impl.UserDaoImpl.getHibernateTemplate()
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$2.doWith(CommonAnnotationBeanPostProcessor.java:374) 展开
严重: Context initialization failed
java.lang.IllegalStateException: @Resource annotation requires a single-arg method: public org.springframework.orm.hibernate3.HibernateTemplate com.bdqn.oa.dao.impl.UserDaoImpl.getHibernateTemplate()
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$2.doWith(CommonAnnotationBeanPostProcessor.java:374)
2011-11-2 13:33:35 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: @Resource annotation requires a single-arg method: public org.springframework.orm.hibernate3.HibernateTemplate com.bdqn.oa.dao.impl.UserDaoImpl.getHibernateTemplate()
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$2.doWith(CommonAnnotationBeanPostProcessor.java:374) 展开
展开全部
遇到这种问题的解决方法:
1.web.xml配置是否有问题.
2.把Catalina 底下的所有历史信息去掉
3,查看TOMCAT底下的localhost_log.2007-12-06.txt日志文件,根据日志找原因是首选.
最后到Tomcat_Home/logs/localhost.2007-12-06.log中发现,原来是在Web.xml的中的filter-class写错了个单词!
有了Log就是好啊。。。。以前都没注意过Tomcat的Log!
1.web.xml配置是否有问题.
2.把Catalina 底下的所有历史信息去掉
3,查看TOMCAT底下的localhost_log.2007-12-06.txt日志文件,根据日志找原因是首选.
最后到Tomcat_Home/logs/localhost.2007-12-06.log中发现,原来是在Web.xml的中的filter-class写错了个单词!
有了Log就是好啊。。。。以前都没注意过Tomcat的Log!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询