cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Attribute ignoreDefaultModelOnRedirect is not allowed to appear in element mvc:annotation-driven

former_member704915
Participant
0 Likes
910

Hello,

I am seeing an error in the console logs when I try to bring up the server on Hybris 2005 version. The Same code works fine on Hybris 1808 version. The error states that :

SEVERE: Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [spring-mvc-config.xml] Offending resource: ServletContext resource [/WEB-INF/psadmin-web-spring.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 22 in XML document from ServletContext resource [/WEB-INF/spring-mvc-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 61; cvc-complex-type.3.2.2: Attribute 'ignoreDefaultModelOnRedirect' is not allowed to appear in element 'mvc:annotation-driven'.

The stacktrace only tells that the error is in one of the spring-mvc-config.xml , but does not tells me in which particular extensions' file it is. Can any one help me with any probable solution to fix this error? Thank you in advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member704915
Participant
0 Likes

I have found out the answer. The file psadmin-web-spring.xml was making referring to an old version of XSD validator . Spring recommends not to use version with schema validators, so that the latest schema will be fetched and put in place to validate the XML

Answers (0)