schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring- beans-4.1.5.xsd

It would be great if I get some help. The posts with same subject did not help me to resolve this.Thanks in advance.

asked Mar 15, 2015 at 17:04 692 1 1 gold badge 12 12 silver badges 25 25 bronze badges

10 Answers 10

The error is because it could not find the xsd. Try doing the below which is using a specific version 4.1.

Or if you don't mention a version, it will try to use the latest.

answered Mar 16, 2015 at 1:46 4,333 2 2 gold badges 21 21 silver badges 35 35 bronze badges Using version-less schemas is strongly recommended, see stackoverflow.com/questions/20894695/… Commented Mar 16, 2015 at 9:45 I've got the similar problem. I didn't use any version. It worked fine. Commented Sep 17, 2015 at 14:54 I had the same problem, this fixed it for me. I am using Netbeans. :) Commented Feb 27, 2017 at 12:17 @HarshalPatil, You are welcome. Anything to help others. Commented Mar 9, 2017 at 21:00 I have the same problem and it got solved once I mentioned the version to xsd. Thanks minion! Commented Aug 7, 2018 at 13:54

From Cosmina I. - Pivotal Certified Professional Spring Developer Exam A Study Guide - 2017

xsi:schemaLocation mt24">
)" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter devto" data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f" data-se-share-sheet-license-name="CC BY-SA 3.0" data-s-popover-placement="bottom-start">Share
)" title="">Improve this answer
answered May 14, 2017 at 16:47
Add a comment |
2

There is no such xsd in any Spring jar : http://www.springframework.org/schema/beans/spring-beans-4.1.5.xsd

Spring xsd for Spring 4.1.x can be referenced by : http://www.springframework.org/schema/beans/spring-beans-4.1.xsd or better : http://www.springframework.org/schema/beans/spring-beans.xsd

The correspondance between the URL and the real location inside each spring jar can be found in META-INF/spring.schemas, so the "version less" URL will still work when u upgrade Spring.

)" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter devto" data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f3.0%2f" data-se-share-sheet-license-name="CC BY-SA 3.0" data-s-popover-placement="bottom-start">Share
)" title="">Improve this answer
answered Jul 30, 2015 at 19:42
Add a comment |
2

In my case it went away by adding

to spring-dispatcher.xml and then running update maven project.