When running the configure script (configure.bat|sh located in <APPIAN_HOME>/_admin/_scripts/configure) after configuring an environment and selecting 6 - Tools > 1 - Encode passwords for use in JBoss data source configuration, the following error is returned:
<APPIAN_HOME>/_admin/_scripts/configure
ERROR encoding the datasource password: cmd /c java -cp <JBOSS_HOME>\modules\system\layers\base\org\picketbox\main\picketbox-4.X.X.X-redhat-X.jar;<JBOSS_HOME>\modules\system\layers\base\org\jboss\logging\main\jboss-logging-3.X.X.X-redhat-X.jar org.picketbox.datasource.security.SecureIdentityLoginModule XYZ failed
The configure script uses two Java classes, picketbox and jboss-logging, for the encoding tool. By default, Appian is configured to use the classes specific to JBoss EAP 6.3.x and not 6.4.0.
To correct the issue, perform the following:
<JBOSS_HOME>/modules/system/layers/base/org/picketbox/main
<JBOSS_HOME>/modules/system/layers/base/org/jboss/logging/main
<APPIAN_HOME>/_admin/_scripts/configure/tasks
If unable to modify the configure.gradle file, follow steps 1–4 under the Action section of this technical note and proceed to the workaround depending on the operating system of the Appian machine where the error occurs:
Windows:
set JBOSS_HOME=<JBOSS_HOME>
set CLASSPATH=%JBOSS_HOME%\modules\system\layers\base\org\picketbox\main\<picketbox_file_from_step_2>;%JBOSS_HOME%\modules\system\layers\base\org\jboss\logging\main\<jboss_logging_file_from_step_4>;%CLASSPATH%
java org.picketbox.datasource.security.SecureIdentityLoginModule <database_password>
Note: These three commands must be ran in the same instance of command prompt.
Unix:
su -
export JBOSS_HOME=<JBOSS_HOME>
export CLASSPATH=${JBOSS_HOME}/modules/system/layers/base/org/picketbox/main/<picketbox_file_from_step_2>:${JBOSS_HOME}/modules/system/layers/base/org/jboss/logging/main/<jboss_logging_file_from_step_4>:$CLASSPATH:
Note: These three commands must be ran in the same instance of Terminal.
This article applies to all versions of Appian using JBoss EAP 6.4.x as an application server.
Last Reviewed: July 2017