Found a really tricky and obscure problem. Whenever running my Spring MVC project it fail at startup with this exception:
org.xml.sax.SAXParseException: cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.
Thanks to this Graham Hacking’s blog article, I figured out this was because commons-dbcp pulling and older version of xercesImpl.
The solution was to add newer version of xercesImpl on pom:
xerces xercesImpl 2.11.0