0

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

1
  • change <beans:beans xml ... to <beans xml ... that should help. Commented Aug 14, 2014 at 11:18

2 Answers 2

1

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
Sign up to request clarification or add additional context in comments.

4 Comments

This worked for me .../schema/mvc/spring-mvc-3.2.xsd .../schema/beans/spring-beans-3.0.xsd
No they should all have the same version. In your case 3.2. I just wrote these two as an example, for sure all the others need to be updated too.
What is difference between 3.2 and 3.0
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.