JBAS014688: Wrong type for environment-variables. Expected [OBJECT] but was LIST
Issue
When trying to add environment variables via the following CLI command
/host=master/jvm=default:write-attribute(name=environment-variables,value=[{ "LD_LIBRARY_PATH" => "/path/to/libs"}])
The command fails with:
"JBAS014688: Wrong type for environment-variables. Expected [OBJECT] but was LIST"
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.2+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.