[jboss-jira] [JBoss JIRA] (WFLY-3791) Error on ModelControllerClient to list sections

ofbiz brazil (JIRA) issues at jboss.org
Fri Aug 29 09:44:00 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996965#comment-12996965 ] 

ofbiz brazil edited comment on WFLY-3791 at 8/29/14 9:43 AM:
-------------------------------------------------------------

Hi Darran,
Is there any difference in standalone.xml that i need to put, because I migrated mine from jboss 7.1.1 to wildfly? Using the default file in Wildfly as base.

Take a look at my securtiy section
<subsystem xmlns="urn:jboss:domain:security:1.2">
	<security-domains>
		<security-domain name="pw_encrypted_MSSQL_CAS_DS" cache-type="default">
			<authentication>
				<login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required">
					<module-option name="username" value="XXXX"/>
					<module-option name="password" value="XXX"/>
					<module-option name="managedConnectionFactoryName" value="jboss.jca:service=TxCM,name=MSSQL_CAS_DS"/>
				</login-module>
			</authentication>
		</security-domain>
		<security-domain name="other" cache-type="default">
			<authentication>
				<login-module code="Remoting" flag="optional">
					<module-option name="password-stacking" value="useFirstPass"/>
				</login-module>
				<login-module code="RealmDirect" flag="required">
					<module-option name="password-stacking" value="useFirstPass"/>
				</login-module>
			</authentication>
		</security-domain>
		<security-domain name="jboss-web-policy" cache-type="default">
			<authorization>
				<policy-module code="Delegating" flag="required"/>
			</authorization>
		</security-domain>
		<security-domain name="jboss-ejb-policy" cache-type="default">
			<authorization>
				<policy-module code="Delegating" flag="required"/>
			</authorization>
		</security-domain>
	</security-domains>
</subsystem>

Cheers,


was (Author: ofbizbrazil):
Hi Darran,
Is there any difference in standalone.xml that i need to put, because I migrated mine from jboss 7.1.1 to wildfly? Using the default file
Cheers,

> 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: Domain Management
>    Affects Versions: 8.1.0.Final
>         Environment: Java 7
>            Reporter: ofbiz brazil
>            Assignee: Darran Lofthouse
>
> 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());
>         final String section = response.get(ClientConstants.RESULT).get("security-domain")
>                 .get("pw_MSSQL_CAS_DS")
> 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