Pages

Monday, November 4, 2013

Reasons for error The matching wildcard is strict, but no declaration can be found for element

This error messages can be found for two reasons.

  1. If you use a trailing slash in the schema location or name space. eg: http://www.springframework.org/schema/beans/       remove the slash to recorrect it
  2. if you do not metion version in it. eg: http://www.springframework.org/schema/integration/spring-integration.xsd instead use http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd
This way you can get rid of the above error in the spring xml files.

No comments:

Post a Comment