2 fnzf14428547 fnzf14428547 于 2016.03.02 20:21 提问

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个回答

caozhy
caozhy   Ds   Rxr 2016.03.02 20:36

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

fnzf14428547
fnzf14428547 我的文件里没有那个文件 那个好像是jar包里面的文件吧,我也不能去修改jar包吧
接近 2 年之前 回复
rui888
rui888   Ds   Rxr 2016.03.03 09:30

[llsfw_v2] is not bound in this Context.

你设置多数据源。你搜搜 llsfw_v2 看有没有配置。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!