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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
