Fixing SAXParser issues with LanguageToolSegmenter

When I deployed a Maven project that uses the LanguageToolSegmenter (wrapped by DKPro Core), I encountered the following stack trace:

It turned out that the problem is that some (actually unnecessary) dependencies ship with an old version of the SAXParser, namely:

  • xercesImpl-2.6.2.jar
  • xalan-2.7.1.jar

In Eclipse, these dependencies can be excluded as follows: Open the dependency tree and search for “xalan” or “xerces”. You can exclude these artifacts via the context menu or by placing exclusion tags below of of the parent artifacts further up in the dependency tree. In my case, it looks like this:


  • [1] Source of this solution
  • [2] describes the problem

Leave a Reply