星星不爱动 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 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题