JBAS014688: Wrong type for environment-variables. Expected [OBJECT] but was LIST

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content