Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoClassDefFoundError: org/jsoup/safety/Whitelist

I recently updated our pom.xml with new Jsoup dependency version of 1.15.3, since then I am receiving "NoClassDefFoundError: org/jsoup/safety/Whitelist". Is there a different version that I can use to resolve this issue ?

like image 836
Sekhar T Avatar asked Oct 22 '25 11:10

Sekhar T


1 Answers

See the CHANGELOG.md:

  * Improvement: renamed the Whitelist class to Safelist, with the
    goal of more inclusive language. A shim is provided
    for backwards compatibility (source and binary). This shim is marked as deprecated and will be removed in the
    jsoup 1.15.1 release.
    <https://github.com/jhy/jsoup/pull/1464>

Apparently, Whitelist has been removed completely with version 1.15.1. Use Safelist instead or revert to an older version of jsoup.

like image 178
Janez Kuhar Avatar answered Oct 27 '25 04:10

Janez Kuhar