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没有配置

    评论

报告相同问题?

悬赏问题

  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用