Spring bootのバージョンを2.2.5.RELEASE→2.3以上(2.5.12)にバージョンアップすると「Caused by: org.xml.sax.SAXNotRecognizedException: unrecognized feature http://xml.org/sax/features/external-general-entities」エラー

Spring bootのバージョンを2.2.5.RELEASE→2.3以上(2.5.12)にバージョンアップすると「Caused by: org.xml.sax.SAXNotRecognizedException: unrecognized feature http://xml.org/sax/features/external-general-entities」エラー

Spring bootのバージョンアップをしたら、src/main/resources/logback-spring.xmlのパースエラーが出てしまいました。

どうもpull-parser-2.jarが悪さしている様子です。

gradlew.bat dependenciesコマンドで調べるとspotbugsのライブラリっぽいのでexcludeしたら解決しました。

dependencies {
  compile('com.github.spotbugs:spotbugs:4.0.0'){
    exclude group: "pull-parser", module: "pull-parser"
  }
  ...
}

参考サイト

かんがるーさんの日記
最近自分が興味をもったものを調べた時の手順等を書いています。今は Spring Boot をいじっています。
The SAX parser pull-parser conflicts with Tomcat SAX parser · Issue #30 · ESGF/esg-orp
esg-orp/.classpath Line 99 in 3da3bcf The pull-parser library overrides the Tomcat SAX parser making the osg-orp applica...

コメント

タイトルとURLをコピーしました