Not able to read ajp connector attributes using CLI in EAP 6

Solution Verified - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6

Issue

  • While retrieving AJP connector attributes using CLI in JBoss EAP 6, the following error could be thrown if the AJP connector is not created or absent for some reason:
[standalone@ip:9999 /] /subsystem=web/connector=ajp:read-resource(recursive=true)
{
    "outcome" => "failed",
    "failure-description" => "JBAS014807: Management resource '[
    (\"subsystem\" => \"web\"),
    (\"connector\" => \"ajp\")
]' not found",
    "rolled-back" => true
}

Resolution

  • Make sure the following entry is there for the connector name "ajp" in standalone.xml:
     <connector name="ajp123" protocol="AJP/1.3" scheme="http" socket-binding="ajp" enabled="true"/>

Note: AJP connector is not avaialble in standalone.xml

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.