Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Validation Error of Spring Beans Schema inside Application Context

after setting up a new Spring-based application, I'm running into trouble with a referenced schema (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd) inside the application context.

appContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

 ....

</beans:beans>

Error

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd).

Even if I reduce the configuration to the minimum version (without any bean definition), I get this error. Does anybody has a hint what's wrong here? Thanks in advance!

Btw: I'm using STS 2.7.1

like image 395
devpg Avatar asked Sep 01 '11 07:09

devpg


2 Answers

Maybe you had an error which is no more there, but the error message is displayed from a cache. This error may have appeared because you had a mix of 2.5 xsd and 3.0 xsd in your applicationContext.xml. You should be able to get details about this error by right-clicking on it (not especially explicit details though...).

Try to clean the error message and re-validate with this minimal file anyway.

like image 169
Tristan Avatar answered Oct 05 '22 05:10

Tristan


In MyEclipseBlue, go to Preferences->My Eclipse->Internet Tools->Cache and remove the files

like image 36
Hubert E Avatar answered Oct 05 '22 04:10

Hubert E