Unable to build a Discover Cluster authentication package due to error "NoClassDefFoundError: org/apache/commons/io/FileUtils"
search cancel

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:

  1. Open File Explorer and navigate to '<installed drive>:\Program Files\Symantec\DataLossPrevention\EnforceServer\16.1.00000\Protect\config\DiscoverClusterKeyTool'
  2. Edit 'Classpath.txt' file with a text editor.
  3. On line 6 you will see something like "../tomcat/lib/commons-io-2.7.jar"
  4. Modify this so it looks like "../tomcat/lib/commons-io-2.11.0.jar"
  5. 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.