Running JUnit test in Spring MVC throws: org.xml.sax.SAXParseException; systemId: http://www.springf

As I suspected, the problem was in xerces libraries. If I'm not mistaken, Spring's dependencies contain xercesImpl dependency, but neither dependency with artifactId xmlParserAPIs nor xerces. I have been just hopelessly refactoring my pom.xml file and included the following dependencies and the rest was a matter of magic:

   
        xerces
        xmlParserAPIs
        2.6.2
   


   
        xerces
        xerces
        2.4.0
   

你可能感兴趣的:(常见错误汇总)