[jboss-jira] [JBoss JIRA] (WFLY-3791) Error on ModelControllerClient to list sections
ofbiz brazil (JIRA)
issues at jboss.org
Thu Aug 28 11:10:59 EDT 2014
ofbiz brazil created WFLY-3791:
----------------------------------
Summary: Error on ModelControllerClient to list sections
Key: WFLY-3791
URL: https://issues.jboss.org/browse/WFLY-3791
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Application Client, CLI
Affects Versions: 8.1.0.Final
Environment: Java 7
Reporter: ofbiz brazil
Assignee: Stuart Douglas
Hello,
When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
Java Code:
--------------
final ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get("recursive").set(true);
request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
final ModelNode response = client.execute(new OperationBuilder(request).build());
Result:
---------
{
"outcome" => "failed",
"failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
"rolled-back" => true
}
Cheers,
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list