Sunil
Sunil

Reputation: 163

Spring mvc configuration error in xml

I am creating an application using spring 3.2 mvc framework. I am using Spring Tool Suite and maven. When i updated jar 3.1 to 3.2 i am getting the following errors in servelet-context.xml and root-context.xml:-

cvc-elt.1: Cannot find the declaration of element 'beans:beans'.
cvc-elt.1: Cannot find the declaration of element 'beans'.

enter image description here

Upvotes: 0

Views: 127

Answers (2)

kiran
kiran

Reputation: 71

You need to check the version of your spring schema also clean and install the maven project again after defining the schema.

Upvotes: 0

Stefan
Stefan

Reputation: 12453

Try to add the version as a suffix for your schema locations:

.../schema/mvc/spring-mvc-3.2.xsd
.../schema/beans/spring-beans-3.2.xsd

Upvotes: 1

Related Questions