"java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException" while executing a script of TIBCO ActiveMatrix Administrator Command Line Interface.
Description: "java.lang.NoClassDefFoundError:
org/apache/commons/codec/DecoderException" while executing a script of
TIBCO ActiveMatrix Administrator Command Line Interface (CLI).
Symptoms:
Here is the exception thrown by the CLI ant scripts in one example to move TIBCO ActiveMatrix Administrator staging folder to a shared file system.
ant
-f sharedWorkFolder_build.xml
-Dadmin.shared.folder="<path>/shared"
-Dconfig.home="<config-home>/" -Denterprise.name="enterprise-name"
************************************************* [AMXAdminTask] 05 Jun 2014 16:32:13 ERROR - java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException [AMXAdminTask] at org.apache.commons.httpclient.HttpMethodBase.getURI(HttpMethodBase.java:261) [AMXAdminTask] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:382) **************************************************
Cause: The particular AMXAdminTask has a dependency of commons-codec library which is not available in CLASSPATH.
Issue/Introduction
"java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException" while executing a script of TIBCO ActiveMatrix Administrator Command Line Interface.
Resolution
Add <TIBCO-HOME>/components/shared/1.0.0/plugins/com.tibco.tpcl.org.apache.commons.codec_1.7.0.001/commons-codec-1.7.jar to your Ant CLASSPATH. For example, you may include the jar into the platform classpath environment variable.