fnzf14428547 2016-03-02 12:21 采纳率: 25%
浏览 1733

web启动出错了,求大神帮忙看下!!

谁知道是怎么回事啊。看不懂求解释

 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-2.3.1-RELEASE.jar!/config/llsfw/core/spring/spring-mybatis.xml]: Cannot resolve reference to bean 'dynamicDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dynamicDataSource' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-2.3.1-RELEASE.jar!/config/llsfw/core/spring/spring-dataSource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'defaultTargetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-2.3.1-RELEASE.jar!/config/llsfw/core/spring/spring-dataSource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [llsfw_v2] is not bound in this Context. Unable to find [llsfw_v2].

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dynamicDataSource' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-2.3.1-RELEASE.jar!/config/llsfw/core/spring/spring-dataSource.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'defaultTargetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-2.3.1-RELEASE.jar!/config/ll
sfw/core/spring/spring-dataSource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [llsfw_v2] is not bound in this Context. Unable to find [llsfw_v2].

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-2.3.1-RELEASE.jar!/config/llsfw/core/spring/spring-dataSource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [llsfw_v2] is not bound in this Context. Unable to find [llsfw_v2].

Caused by: javax.naming.NameNotFoundException: Name [llsfw_v2] is not bound in this Context. Unable to find [llsfw_v2].
    at org.apache.naming.NamingContext.lookup(NamingContext.java:819)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:830)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:830)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:167)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:155)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:179)
    at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
    at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:106)
    at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:231)
    at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:217)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
    ... 94 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionsMapper' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-webcore-2.3.1-RELEASE.jar!/com/llsfw/webcore/mapper/expand/permissions/PermissionsMapper.class]: Can


  • 写回答

2条回答

  • threenewbee 2016-03-02 12:36
    关注

    spring-dataSource.xml配置文件的dynamicDataSource没有配置

    评论

报告相同问题?

悬赏问题

  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集