"Cannot resolve expression" error during start up with instance-id pointed to a system property

Solution Verified - Updated -

Issue

  • When we set instance-id to a system property like so:
<subsystem xmlns="urn:jboss:domain:web:1.1" ... instance-id="${jboss.jvmRoute}">
  • JBoss throws the following error during start up:
        ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 45) JBAS014613: Operation ("add") failed - address: ([("subsystem" => "web")]) - failure description: "JBAS014802: Cannot resolve expression 'expression \"${jboss.jvmRoute}\"' -- java.lang.IllegalStateException: Failed to resolve expression: ${jboss.jvmRoute}"

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x

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