You need to add the commons-lang3-3.x.jar
to your classpath for the filter to run.
You must ensure you don't have multiple versions of commons-lang3-x.x.jar
too.
commons-lang3-x.x.jar
and commons-lang-x.x.jar
instead can coexist in the same classpath, because the package
is different (they did it on purpose ;)
This can be known, because of NoClassDefFoundError:
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils.
which occurs mostly in two cases:
- at runtime, you doesn't have the library,
- or you have two versions of the library, hence the classloader doesn't know which to pick, and raises the exception.
The lang3 in the package means that the StringUtils class missing is from common-lang3-*.jar
, not from common-lang-*.jar
.