Troubleshooting
Problem
When attempting to install an application to an application server by using the Rational Automation Framework for WebSphere (RAFW) action was_common_deploy_install_app and using the split properties format, wsadmin fails with the following message:
WASX7017E: Exception received while running file "
Symptom
The application installation fails and wsadmin throws a java.lang.ClassCastException: java.lang.String incompatible with java.util.List.
Cause
The cause of this problem is an option in the split properties file that should have been specified using the "options.multi." format but used the singular "options." format. The result is the option should have been passed to wsadmin as a single element list, but it is passed as a string.
Environment
WebSphere Application Server
Rational Automation Framework for WebSphere
Diagnosing The Problem
Check the failed step log for the following message exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List.
Resolving The Problem
Examine the application's split-properties file and ensure that all appropriate options are using the "options.multi." format. Ensure the options string passed to wsadmin wraps the single element list in an outer set of brackets [ ].
For example (application's split-properties file):
Incorrect: options.MapRolesToUsers=["SampAdmin" No No wasadmin wasadmin]
Correct: options.multi.1.MapRolesToUsers=["SampAdmin" No No wasadmin wasadmin]
For example (OPTIONS reported by wsadmin) :
Incorrect: -MapRolesToUsers ["SampAdmin" No No wasadmin wasadmin]
Correct: -MapRolesToUsers [["SampAdmin" No No wasadmin wasadmin]]
Was this topic helpful?
Document Information
More support for:
Rational Automation Framework for WebSphere
Software version:
7.1.1.2, 7.1.1.3, 7.1.1.4
Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows, z/OS
Document number:
405437
Modified date:
20 April 2020
UID
swg21428721