Host controller cannot resolve jboss.server.log.dir expression for log paths

Solution Verified - Updated -

Issue

  • We tried to configure a domain managed JBoss instance with a gc log path relative to jboss.server.log.dir, but the host controller couldn't resolve this expression.

    <option value="-Xloggc:${jboss.server.log.dir}/gc.log"/>
    
  • We have a system property that uses the internal jboss variable replacement, to point to the logging dir of a server instance. We just moved from EAP 6.2.2, where variable replacement worked just fine, to EAP 6.4 where this doesn't seem to work anymore. The value of the system property is : ${jboss.server.log.dir}/xyz
    And here is the stacktrace from the host controller starting the server
14:55:20,736 ERROR [org.jboss.as.controller.management-operation] (Host Controller Service Threads - 21) JBAS014612: Operation ("start") failed - address: ([
    ("host" => "host002"),
    ("server-config" => "abc")
]): java.lang.IllegalStateException: JBAS014802: Cannot resolve expression '${jboss.server.log.dir}/xyz'

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