Unable to build a Discover Cluster authentication package due to error "NoClassDefFoundError: org/apache/commons/io/FileUtils"
book
Article ID: 383530
calendar_today
Updated On:
Products
Data Loss Prevention
Issue/Introduction
When trying to build a Discover Cluster authentication package in DLP 16.1, it fails with error "NoClassDefFoundError: org/apache/commons/io/FileUtils"
Environment
16.1
Cause
This is due to an incorrect Apache commons-io jar version being defined in the DiscoverClusterKeyTool classpath
Resolution
There is a simple workaround to this. This will be addressed in a future release of DLP.
Workaround:
Open File Explorer and navigate to '<installed drive>:\Program Files\Symantec\DataLossPrevention\EnforceServer\16.1.00000\Protect\config\DiscoverClusterKeyTool'
Edit 'Classpath.txt' file with a text editor.
On line 6 you will see something like "../tomcat/lib/commons-io-2.7.jar"
Modify this so it looks like "../tomcat/lib/commons-io-2.11.0.jar"
Save the file and exit.
There is no need to restart any services. Just run the DiscoverClusterKeyTool again and it will work fine this time. You can also verify the above paths as well to where the commons-io jar file lives and verify the versions as an extra step but it should not be required.