2014-07-08 16:15:09.494 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'wxPaymentProRightsMapper' defined in URL [jar:file:/D:/Maven_Repository/aviva-cofco/repository/com/minshenglife/wxpp/minshenglife-wxpp-dal/0.0.1-SNAPSHOT/minshenglife-wxpp-dal-0.0.1-SNAPSHOT.jar!/com/minshenglife/wxpp/dal/mapper/WxPaymentProRightsMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in URL [file:/D:/javaee/workspace/minshenglife-wxpp/minshenglife-wxpp-web/target/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [mybatis/UserActivityMapper.xml]'; nested exception is java.lang.RuntimeException:
Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.minshenglife.wxpp.dal.mapper.UserActivityMapper.searchByUserIdAndActivityId; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in URL [file:/D:/javaee/workspace/minshenglife-wxpp/minshenglife-wxpp-web/target/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [mybatis/UserActivityMapper.xml]'; nested exception is java.lang.RuntimeException:
Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.minshenglife.wxpp.dal.mapper.UserActivityMapper.searchByUserIdAndActivityId
先说下框架,springmvc+mybatis,用jetty启动项目的时候,jetty一直在输出debug日志,但是启动不了,也没见到报错,找了半天也不知道什么问题,就是一直在那输出debug信息,关掉jetty,仔细查看控制台输出的时候,发现了以上错误信息,并不是没有报错,是报错了,但是jetty陷入了死循环,一直在输出日志,原来是mybatis的映射文件mapper.xml出错了,里面有一段重复的映射(本来想添加一个方法复制的,但是又没有添加,也没把刚复制的删掉)最后导致这个问题的发生,引以为戒
分享到:
相关推荐
jetty启动配置文件
jetty容器内嵌到java代码中,通过代码控制启动,方便开发调试
JETTY启动文件配置方法.txt
jetty启动的maven web项目
jetty简单启动web服务
使用Eclipse构建Maven的Web项目用jetty启动.docx
给出一个JETTY启动的例子,适合新手学习!
org.apache.jasper.JasperException: /WEB-INF/tags/ext/body.tag(105,4) PWC6038: "${empty(extLocation)?"js/ext-2.0":extLocation}" contiene expresiones no válidas: javax.el.ELException: Error Parsing: ...
启动jetty的start.jar,此文件所在目录下增加lib,etc,context文件夹,lib下增加jetty的主jar包和jetty的util包。在etc下增加jetty的两个配置文件jetty.xml和webdefault.xml。在context下增加test.xml
jetty的main启动代码及相关jar包: jetty-6.1.26.jar、jetty-util-6.1.26.jar为jetty相关jar包。 jasper-el.jar、jasper-jdt.jar、jasper.jar为jsp页面解析编译相关jar包。 jsp-api.jar为jstl相关jar包 tomcat-juli....
将此类放入项目中,稍作修改,便可启动jetty部署。
shell脚本启动jetty嵌入式server,shell脚本启动jetty嵌入式server
jetty start 9.2.13 项目所需要的完整jar包,免费。jetty启动调试
自己写的jetty6在eclipse启动中配置说明
jetty简单启动web服务第二版,运行多个servlet
maven的项目用jetty 服务器启动项目时配置此段配置,就可以实现热部署(意思就是eclipse改了代码可以不用重启服务器)
jetty是什么 jetty配置 jetty使用 jetty嵌入 jetty启动 jetty部署 jetty教程 jetty嵌入式 jetty
NULL 博文链接:https://congpeixue.iteye.com/blog/254664