Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace

原创 2016年08月28日 20:52:00

今天自己整合SSM,总是报如下的错误,怎么也解决不了,最后发现居然是Mybatis的jar包版本低了,而且少了一个jar包。。。

报错用的jar包是替换的jar包为

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://mybatis.org/schema/mybatis-spring]
Offending resource: ServletContext resource [/WEB-INF/config/spring-dao.xml]

	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1424)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1417)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:174)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:144)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:100)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:510)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)


版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Unable to locate Spring NamespaceHandler for XML schema namespace问题排查

今天接公司其他项目组的JSF外部服务接口,写单元测试的时候,报如下错误。 Caused by: org.springframework.beans.factory.parsing.BeanDefini...

maven项目打包发布问题-Unable to locate Spring NamespaceHandler for XML schema namespace

http://chenzhou123520.iteye.com/blog/1971322 java服务中整合了spring,在Eclipse里本地启动时没问题,但是部署到局域网l...

spring 开发过程中和第三方工具整合的问题:Unable to locate Spring NamespaceHandler

1.问题描述 org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration prob...
  • liu251
  • liu251
  • 2011年08月22日 09:59
  • 12108

整合mybatis时报错:Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespac

整合mybatis时报错:Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namesp...

单点登录(十一)-----遇到问题-----cas启用mongodb验证方式报错--Unable to locate Spring NamespaceHandler for XML schema na

cas启用mongodb验证方式报错--Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.sp...

spring报错Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace

报Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://ww...

BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler

转自。。。。。。。BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHan...

Unable to locate Spring NamespaceHandler for XML schema namespace异常解决

测试环境: eclipse4.4 Spring3 MySQL5 今天测试Spring的AOP时出现以下异常: org.springframework.beans.fact...

Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/sc

1、错误描述org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration proble...

Spring 3.0: Unable to locate Spring NamespaceHandler for XML schema namespace

昨日,在原本应用中添加了关于webService的调用,使用了Apache CXF 框架,并将其集成到了Spring中。   当时集成时,使用了如下的jar包(Spring2.5.5.JP...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace
举报原因:
原因补充:

(最多只允许输入30个字)