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币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
anroid xmpp即时通讯的问题 求大神帮忙看下
本人刚学android不久,现在再做一个xmpp的demo 客户端发送消息时 chat.sendMessage();可以填两种参数 一种是直接发送字符串,一种是发送一个Message 对象  收到消息的监听类如下 public class TaxiChatManagerListener implements ChatManagerListener { private Context mCon
构建JDK8报错了,哪位大神能帮忙看下什么原因 ?
构建JDK8报错了,哪位大神能帮忙看下什么原因 ?
ssm上传出现问题,拜托大神帮忙看下
org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of m...
求大神帮忙~
wowza推流连接成功了  但是播放得到时候就显示now published 本人萌新根本不懂啊  求帮助
求大神帮忙解决
新接触的一个idea编程软件。。配置好了tomcat的。但是一运行就报一个异常The APR based Apache Tomcat Native library failed to load. The error reported was [D:\apache-tomcat-7.0.68\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA...
求大神帮忙
Dim qyjbxx__MMColParam qyjbxx__MMColParam = "1" If (Request.Form("fwlly")    qyjbxx__MMColParam = Request.Form("fwlly") End If %> Dim qyjbxx__NNColParam qyjbxx__NNColParam = "1" If (Request.
求大神帮忙!!!!!!!!!!
 不能用循环是一件多么悲伤的事下面是一个算到10的加法表:0 + 0 = 0 0 + 1 = 1 0 + 2 = 2 0 + 3 = 3 0 + 4 = 4 0 + 5 = 5 0 + 6 = 6 0 + 7 = 7 0 + 8 = 8 0 + 9 = 9 0 +10 = 10 1 + 0 = 1 1 + 1 = 2 1 + 2 = 3 1 + 3 = 4 1 + ...
求大神帮忙,急!!
是不是没连上数据库啊?
大神求帮忙
#coding:utf-8 import requests from bs4 import BeautifulSoup base_url = "http://www.ico2o.com/item-%d" def find_matching(url): # 下载页面 r = requests.get(url) html_soup = BeautifulSoup(r.r
Ajax 求大神帮忙!
function updateTclass(){ var id = $("#classId1").val(); var tclassName = $("#className1").val(); var major = $("#classMajor1").val(); $.ajax({     type:"post",     url : "updateTclass.do",//访问