"java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException" while executing a script of TIBCO ActiveMatrix Administrator Command Line Interface.

"java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException" while executing a script of TIBCO ActiveMatrix Administrator Command Line Interface.

book

Article ID: KB0086136

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
TIBCO BPM Enterprise (formerly TIBCO ActiveMatrix BPM) -
TIBCO ActiveMatrix BusinessWorks Service Engine -

Description

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.

Export classpath=%classpath%;<TIBCO-HOME>/components/shared/1.0.0/plugins/com.tibco.tpcl.org.apache.commons.codec_1.7.0.001/commons-codec-1.7.jar

Note that the library version mentioned (1.7 in the above example) might very for different product versions.