星星不爱动 2018-06-20 10:46 采纳率: 0%
浏览 931
已结题

org.apache.catalina.core.StandardContext

tomcat上跑起来的时候控制台显示这个错误,大神们能帮我看看这是什么错么。。。。。
weixin:liboxing940721,希望可以互相沟通下,刚入门的小菜鸟

2018-6-20 16:52:18 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 'httpAllVPay': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allVPayServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseService' defined in class path resource [spring/spring-impl.xml]: Cannot resolve reference to bean 'allVPayDao' while setting bean property 'allvpayDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'allVPayDao' defined in file [F:\workspcae\apache-tomcat-7.0.88\wtpwebapps\allvpay-web\WEB-INF\classes\com\efuture\allvpay\dao\AllVPayDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dbsource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dbsource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'allVPayDao' defined in file [F:\workspcae\apache-tomcat-7.0.88\wtpwebapps\allvpay-web\WEB-INF\classes\com\efuture\allvpay\dao\AllVPayDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dbsource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dbsource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'allVPayDao' defined in file [F:\workspcae\apache-tomcat-7.0.88\wtpwebapps\allvpay-web\WEB-INF\classes\com\efuture\allvpay\dao\AllVPayDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dbsource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dbsource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dbsource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [jdbc/mssql-allvpay] is not bound in this Context. Unable to find [jdbc].

  • 写回答

3条回答

  • 六月的星星 2018-06-20 13:59
    关注

    web.xml查找监听的类,AllVPayDao.java报错了看下是什么原因

    评论

报告相同问题?

悬赏问题

  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决