星星不爱动 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 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制