Obtaining the list of available datasources through JBoss CLI throws "JBAS014883: No resource definition is registered for address" in EAP 6

Solution Verified - Updated -

Issue

  • User is trying to use JBoss cli to obtain list of datasources and certain attributes for each of those
"/subsystem=datasources:read-resource"
  • This one is listing the list of datasources available.
/subsystem=datasources/data-source=ExampleDS/statistics=pool:read-resource(include-runtime=true)
  • User is using JBoss EAP 6.0.1 and looking for a generic command using JBoss CLI and want to obtain the list of available datasources and certain stats related to each datasource. Here is how the command looks like:
"/subsystem=datasources/data-source=Datasource_name/statistics=pool:read-resource(include-runtime=true)" 

which is throwing error as below :

 Failed to get the list of the operation properties: "JBAS014883: No resource definition is registered for address
  • User is running the below command on the server prompt and hence the error details are found here and not in server.log. Below is the sample of the same:
[Host_Name ~]$ /apps/jboss/bin/jboss-cli.sh --connect controller=<host_name>:<port_no> --user=<User_Name> --password=<Password> -c "/subsystem=datasources/data-source=<Datasource_Name>/statistics=pool:read-resource(include-runtime=true)"
Failed to get the list of the operation properties: "JBAS014883: No resource definition is registered for address [
    ("subsystem" => "datasources"),
    ("data-source" => "Datasource_Name"),
    ("statistics" => "pool")
]"

Environment

  • Red Hat 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