Console fails to display datasources correctly when a datasource has a property substitution in JBoss EAP
Issue
-
One or more datasources are defined using property substitution for the
enabled
attribute in thedatasources
subsystem instandalone*.xml
ordomain.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.