on 2020 Oct 20 12:28 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.