{"id":2532,"date":"2016-01-18T13:11:45","date_gmt":"2016-01-18T05:11:45","guid":{"rendered":"http:\/\/www.menglanglang.cn\/?p=2532"},"modified":"2016-07-20T18:11:10","modified_gmt":"2016-07-20T10:11:10","slug":"configuration-problem-unable-to-locate-spring-namespacehandler-for-xml-schema","status":"publish","type":"post","link":"http:\/\/www.menglanglang.cn\/?p=2532","title":{"rendered":"Configuration problem: Unable to locate Spring NamespaceHandler for XML schema"},"content":{"rendered":"<p>1. \u914d\u7f6e spring-security \u65f6\u62a5\u9519\u4e3a\uff1aConfiguration problem: Unable to locate Spring NamespaceHandler for XML schem<\/p>\n<p><strong>\u539f\u56e0\uff1a\u5fd8\u8bb0\u6dfb\u52a0 spring-security.config.jar \u6587\u4ef6<\/strong><\/p>\n<p>2. ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:\/\/www.springframework.org\/schema\/tx]<br \/>\nOffending resource: class path resource [applicationContext.xml]<\/p>\n<p><strong>\u539f\u56e0\uff1aapplicationContext.xml \u91cc\u9762\u7528\u5230\u7684\u6807\u7b7e\u662f spring 2.0 \u7684\uff0c\u800c\u9879\u76ee\u91cc\u9762\u7528\u5230\u7684\u662f spring 2.5 \u7684 jar\uff0c\u6240\u4ee5\u51fa\u73b0\u4e86\u8fd9\u4e2a\u9519\u8bef\uff0c\u89e3\u51b3\u529e\u6cd5\u662f\u628a\u9879\u76ee\u91cc\u7684 spring 2.5 \u6362\u6210 2.0 \u7684\uff0c\u6216\u8005\u662f\u4fee\u6539 applicationContext.xml \u7684\u6807\u7b7e\u6587\u4ef6\u3002<\/strong><\/p>\n<p>3. BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler<\/p>\n<p><strong>\u539f\u56e0\uff1a\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u662f\u56e0\u4e3a spring3.0 \u91cc\u7684\u5305\u662f\u5355\u72ec\u5f15\u7528\u7684\uff0c\u7f3a\u5c11\u4e86\u522b\u7684\u5305\u3002<\/strong><\/p>\n<p>\u8b6c\u5982 Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:\/\/www.springframework.org\/schema\/tx\uff0c\u5c31\u662f\u5c11\u4e86 org.springframework.transaction-3.0.0.M3.jar\u5305\uff1b<\/p>\n<p>\u800c Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:\/\/www.springframework.org\/schema\/aop\uff0c\u5219\u662f\u5c11\u4e86 org.springframework.aop-3.0.0.M3.jar\u5305\uff1b<\/p>\n<p>4. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:\/\/www.springframework.org\/schema\/webflow-config]<\/p>\n<p>Offending resource: ServletContext resource [\/WEB-INF\/webflow-config.xml]<\/p>\n<p><strong>\u539f\u56e0\uff1a\u5982\u679c\u9047\u5230\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u8981\u6ce8\u610f\u770b\u4f60\u7684 jar \u5305\u4e2d\u7684 META-INF \u76ee\u5f55\u4e0b\u662f\u4e0d\u662f\u6709\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff1aspring-handlers \u53ca spring-schemas!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u914d\u7f6e spring-security \u65f6\u62a5\u9519\u4e3a\uff1aConfiguration &hellip; <a href=\"http:\/\/www.menglanglang.cn\/?p=2532\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","wpai_meta_description":"","footnotes":""},"categories":[648],"tags":[335,650,332,199],"class_list":["post-2532","post","type-post","status-publish","format-standard","hentry","category-error-warning","tag-error","tag-spring","tag-332","tag-199"],"_links":{"self":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/2532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2532"}],"version-history":[{"count":2,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/2532\/revisions"}],"predecessor-version":[{"id":2830,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/2532\/revisions\/2830"}],"wp:attachment":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2532"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}