Spring: Attribute “xmlns” must be declared for element type “beans”

This happens if you add ‘xmlns’ tags into your application-context file where you define your beans. Also other spring configurations might lead to a similar error. The solution for this is to remove the document type of the xml-file, which should look like this:

Afterwards the error should be gone, since the file is not checked against another definition.

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Spring: Attribute “xmlns” must be declared for element type “beans”

  1. Pingback: Womby

Leave a Reply

Your email address will not be published. Required fields are marked *


2 + = seven

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">