Console fails to display datasources correctly when a datasource has a property substitution in JBoss EAP

Solution Verified - Updated -

Issue

  • One or more datasources are defined using property substitution for the enabled attribute in the datasources subsystem in standalone*.xml or domain.xml:

                <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="${h2.enabled}" ...>
                    ...
                </datasource>
                ...
    
  • The server is started using an external properties file (e.g. bin/standalone.sh -P config.properties) with a name/value pair (e.g. h2.enabled=true.
  • In the web console, navigate to the "Configuration" tab then through "Subsystems" -> "Datasources & Drivers" and click on "Datasources".
  • The web console fails to display the datasource (and may display a limited number of the others defined in the same profile - whether or not they have any substitution) and briefly raises one or more "Internal Error" "pop-up(s)".

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.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