0 Replies Latest reply on May 31, 2018 3:23 AM by ashishs

    WildFly 12: error jboss.remoting.management.channel.registry

    ashishs Newbie

      I am upgrading application from wildFly 8 to wildFly 12. Checked the standalone-full.xml in both the versions, looks good. The server starts, but the deployment of the ear fails with error.

       

      2018-05-29 14:44:34,674 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([

          ("core-service" => "management"),

          ("management-interface" => "http-interface")

      ]) - failure description: {

          "WFLYCTL0412: Required services that are not installed:" => ["jboss.remoting.management.channel.registry"],

          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["org.wildfly.management.http.extensible.shutdown is missing [jboss.remoting.management.channel.registry]"]

      }

      2018-05-29 14:44:34,685 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "wfa-0.5.ear")]) - failure description: {

          "WFLYCTL0412: Required services that are not installed:" => [

              "jboss.deployment.subunit.\"wfa-0.5.ear\".\"workflow-0.5.jar\".component.ReservationsDaoImpl.START",

      ------------------------------------------------------------------------------------------------------------------------

      Structure of ear:

      +- lib

      +- META-INF

      |  +- application.xml

      |  +- jboss-deployment-structure.xml

      |  +- MANIFEST.MF

      +- cache-0.5.jar

      +- command-0.5.jar

      +- common-0.5.jar

      +- dar-0.5.jar

      +- finders-0.5.jar

      +- job-management-0.5.jar

      +- rest-facade-0.5.war

      +- server-facade-0.5.jar

      +- upgrade-portal-0.5.war

      +- upgraders-0.5.jar

      +- user-management-0.5.jar

      +- web-services-0.5.war

      +- z_asup-0.5.jar

       

      -----------------------------------------------------------------------------------------------------

      standalone-full.xml

      <?xml version="1.0" ?>

      <server xmlns="urn:jboss:domain:6.0">

          <extensions>

              <extension module="org.jboss.as.clustering.infinispan"/>

              <extension module="org.jboss.as.connector"/>

              <extension module="org.jboss.as.deployment-scanner"/>

              <extension module="org.jboss.as.ee"/>

              <extension module="org.jboss.as.ejb3"/>

              <extension module="org.jboss.as.jaxrs"/>

              <extension module="org.jboss.as.jdr"/>

              <extension module="org.jboss.as.jmx"/>

              <extension module="org.jboss.as.jpa"/>

              <extension module="org.jboss.as.jsf"/>

              <extension module="org.jboss.as.jsr77"/>

              <extension module="org.jboss.as.logging"/>

              <extension module="org.jboss.as.mail"/>

              <extension module="org.jboss.as.naming"/>

              <extension module="org.jboss.as.pojo"/>

              <extension module="org.jboss.as.remoting"/>

              <extension module="org.jboss.as.sar"/>

              <extension module="org.jboss.as.security"/>

              <extension module="org.jboss.as.transactions"/>

              <extension module="org.jboss.as.webservices"/>

              <extension module="org.jboss.as.weld"/>

              <extension module="org.wildfly.extension.batch.jberet"/>

              <extension module="org.wildfly.extension.bean-validation"/>

              <extension module="org.wildfly.extension.core-management"/>

              <extension module="org.wildfly.extension.elytron"/>

              <extension module="org.wildfly.extension.io"/>

              <extension module="org.wildfly.extension.messaging-activemq"/>

              <extension module="org.wildfly.extension.request-controller"/>

              <extension module="org.wildfly.extension.security.manager"/>

              <extension module="org.wildfly.extension.undertow"/>

              <extension module="org.wildfly.iiop-openjdk"/>

          </extensions>

          <management>

              <security-realms>

                  <security-realm name="ManagementRealm">

                      <authentication>

                          <jaas name="jboss-management-login"/>

                      </authentication>

                      <authorization map-groups-to-roles="false">

                          <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>

                      </authorization>

                  </security-realm>

                  <security-realm name="ApplicationRealm">

                      <authentication>

                          <local default-user="$local" allowed-users="*" skip-group-loading="true"/>

                          <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>

                      </authentication>

                      <authorization>

                          <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>

                      </authorization>

                  </security-realm>

                  <security-realm name="SSLRealm">

                      <server-identities>

                          <ssl>

                              <keystore path="keystore/wfa.keystore" relative-to="jboss.server.config.dir" keystore-password="changeit"/>

                          </ssl>

                      </server-identities>

                  </security-realm>

              </security-realms>

              <audit-log>

                  <formatters>

                      <json-formatter name="json-formatter"/>

                  </formatters>

                  <handlers>

                      <file-handler name="file" formatter="json-formatter" path="audit-log.log" relative-to="jboss.server.data.dir"/>

                  </handlers>

                  <logger log-boot="true" log-read-only="false" enabled="false">

                      <handlers>

                          <handler name="file"/>

                      </handlers>

                  </logger>

              </audit-log>

              <management-interfaces>

                  <http-interface security-realm="ManagementRealm">

                      <socket-binding http="management-http"/>

                  </http-interface>

              </management-interfaces>

              <access-control provider="simple">

                  <role-mapping>

                      <role name="SuperUser">

                          <include>

                              <user name="$local"/>

                          </include>

                      </role>

                  </role-mapping>

              </access-control>

          </management>

          <profile>

              <subsystem xmlns="urn:jboss:domain:logging:4.0">

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                  </console-handler>

                  <size-rotating-file-handler name="FILE">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="server.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_FINDERS">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa_finders.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_GENERAL">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_STATS">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa_stats.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_BACKUP_RESTORE">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa_backup_restore.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_LDAP">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa_ldap.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_CLIENT">

                      <formatter>

                          <pattern-formatter pattern="%m%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa_client.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="GRANITEDS">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="graniteds.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_ACQUISITION">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="wfa_acquisition.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <size-rotating-file-handler name="WFA_REGULAR_UPGRADE">

                      <formatter>

                          <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="schema_validation.log"/>

                      <rotate-size value="5M"/>

                      <max-backup-index value="5"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

                  <logger category="com.netapp.wfa.upgrade.InPlaceUpgradeServiceImpl" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_REGULAR_UPGRADE"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.finders.execution" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_FINDERS"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa" use-parent-handlers="false">

                      <level name="INFO"/>

                      <handlers>

                          <handler name="WFA_GENERAL"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.engine.findchart" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_GENERAL"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.common.stats" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_STATS"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.backupandrestore" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_BACKUP_RESTORE"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.upgrade" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_BACKUP_RESTORE"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.ldap" use-parent-handlers="false">

                      <level name="WARN"/>

                      <handlers>

                          <handler name="WFA_LDAP"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.engine.exec" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_GENERAL"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.ui.LogServiceImpl" use-parent-handlers="false">

                      <level name="DEBUG"/>

                      <handlers>

                          <handler name="WFA_CLIENT"/>

                      </handlers>

                  </logger>

                  <logger category="org.granite" use-parent-handlers="false">

                      <level name="WARN"/>

                      <handlers>

                          <handler name="GRANITEDS"/>

                      </handlers>

                  </logger>

                  <logger category="com.netapp.wfa.cache.job" use-parent-handlers="false">

                      <level name="INFO"/>

                      <handlers>

                          <handler name="WFA_ACQUISITION"/>

                      </handlers>

                  </logger>

                  <logger category="sun">

                      <level name="WARN"/>

                  </logger>

                  <logger category="com.sun">

                      <level name="WARN"/>

                  </logger>

                  <logger category="com.arjuna">

                      <level name="WARN"/>

                  </logger>

                  <logger category="org">

                      <level name="WARN"/>

                  </logger>

                  <logger category="org.jboss.as.ejb3">

                      <level name="ERROR"/>

                  </logger>

                  <logger category="org.jboss.modules">

                      <level name="WARN"/>

                  </logger>

                  <logger category="org.jboss.as.dependency">

                      <level name="DEBUG"/>

                  </logger>

                  <logger category="org.jboss.as.dependency.private">

                      <level name="ERROR"/>

                  </logger>

                  <logger category="org.jboss.security">

                      <level name="ERROR"/>

                  </logger>

                  <logger category="org.jboss.as.security">

                      <level name="INFO"/>

                  </logger>

                  <logger category="org.jboss.as">

                      <level name="INFO"/>

                  </logger>

                  <logger category="javax">

                      <level name="INFO"/>

                  </logger>

                  <root-logger>

                      <level name="INFO"/>

                      <handlers>

                          <handler name="CONSOLE"/>

                          <handler name="FILE"/>

                      </handlers>

                  </root-logger>

                  <formatter name="PATTERN">

                      <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>

                  </formatter>

                  <formatter name="COLOR-PATTERN">

                      <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>

                  </formatter>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:batch-jberet:2.0">

                  <default-job-repository name="in-memory"/>

                  <default-thread-pool name="batch"/>

                  <job-repository name="in-memory">

                      <in-memory/>

                  </job-repository>

                  <thread-pool name="batch">

                      <max-threads count="10"/>

                      <keepalive-time time="30" unit="seconds"/>

                  </thread-pool>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/>

              <subsystem xmlns="urn:jboss:domain:core-management:1.0"/>

              <subsystem xmlns="urn:jboss:domain:datasources:5.0">

                  <datasources>

                      <datasource jta="true" jndi-name="java:/jboss-mysql-ds" pool-name="jboss-mysql-ds" enabled="true" use-java-context="true" use-ccm="true">

                          <connection-url>jdbc:mysql://localhost:${mysql.port:3306}</connection-url>

                          <driver>org.mariadb.jdbc</driver>

                          <pool>

                              <min-pool-size>10</min-pool-size>

                              <max-pool-size>100</max-pool-size>

                              <prefill>true</prefill>

                          </pool>

                          <security>

                              <user-name>root</user-name>

                              <password>${mysql.password}</password>

                          </security>

                          <timeout>

                              <blocking-timeout-millis>5000</blocking-timeout-millis>

                              <idle-timeout-minutes>15</idle-timeout-minutes>

                          </timeout>

                          <statement>

                              <track-statements>true</track-statements>

                              <prepared-statement-cache-size>0</prepared-statement-cache-size>

                              <share-prepared-statements>false</share-prepared-statements>

                          </statement>

                      </datasource>

                      <datasource jta="true" jndi-name="java:/restricted-ds" pool-name="restricted-ds" enabled="true" use-java-context="true" use-ccm="true">

                          <connection-url>jdbc:mysql://localhost:${mysql.port:3306}</connection-url>

                          <driver>org.mariadb.jdbc</driver>

                          <pool>

                              <min-pool-size>10</min-pool-size>

                              <max-pool-size>100</max-pool-size>

                              <prefill>true</prefill>

                          </pool>

                          <security>

                              <user-name>restricted</user-name>

                              <password>Restricted123</password>

                          </security>

                          <timeout>

                              <blocking-timeout-millis>5000</blocking-timeout-millis>

                              <idle-timeout-minutes>15</idle-timeout-minutes>

                          </timeout>

                          <statement>

                              <track-statements>true</track-statements>

                              <prepared-statement-cache-size>0</prepared-statement-cache-size>

                              <share-prepared-statements>false</share-prepared-statements>

                          </statement>

                      </datasource>

                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">

                          <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>

                          <driver>h2</driver>

                          <security>

                              <user-name>sa</user-name>

                              <password>sa</password>

                          </security>

                      </datasource>

                      <drivers>

                          <driver name="org.mariadb.jdbc" module="org.mariadb.jdbc">

                              <driver-class>org.mariadb.jdbc.Driver</driver-class>

                          </driver>

                          <driver name="h2" module="com.h2database.h2">

                              <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>

                          </driver>

                      </drivers>

                  </datasources>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">

                  <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:ee:4.0">

                  <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>

                  <concurrent>

                      <context-services>

                          <context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/>

                      </context-services>

                      <managed-thread-factories>

                          <managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>

                      </managed-thread-factories>

                      <managed-executor-services>

                          <managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/>

                      </managed-executor-services>

                      <managed-scheduled-executor-services>

                          <managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/>

                      </managed-scheduled-executor-services>

                  </concurrent>

                  <default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS" jms-connection-factory="java:jboss/DefaultJMSConnectionFactory" managed-executor-service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:ejb3:5.0">

                  <session-bean>

                      <stateless>

                          <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

                      </stateless>

                      <stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/>

                      <singleton default-access-timeout="5000"/>

                  </session-bean>

                  <mdb>

                      <resource-adapter-ref resource-adapter-name="activemq-rar.rar"/>

                      <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>

                  </mdb>

                  <pools>

                      <bean-instance-pools>

                          <strict-max-pool name="slsb-strict-max-pool" max-pool-size="500" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                          <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                          <strict-max-pool name="WORKFLOW_EXECUTOR_POOL" max-pool-size="100" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                          <strict-max-pool name="ASUP_EXECUTOR_POOL" max-pool-size="1" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                          <strict-max-pool name="WORKFLOW_PLANER_POOL" max-pool-size="1" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                          <strict-max-pool name="CACHE_EXECUTOR_POOL" max-pool-size="1" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                      </bean-instance-pools>

                  </pools>

                  <caches>

                      <cache name="simple"/>

                      <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>

                  </caches>

                  <passivation-stores>

                      <passivation-store name="file" cache-container="ejb" max-size="10000"/>

                  </passivation-stores>

                  <async thread-pool-name="default"/>

                  <timer-service thread-pool-name="default" default-data-store="default-file-store">

                      <data-stores>

                          <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>

                      </data-stores>

                  </timer-service>

                  <remote connector-ref="http-remoting-connector" thread-pool-name="default"/>

                  <thread-pools>

                      <thread-pool name="default">

                          <max-threads count="50"/>

                          <keepalive-time time="100" unit="milliseconds"/>

                      </thread-pool>

                  </thread-pools>

                  <iiop enable-by-default="false" use-qualified-name="false"/>

                  <default-security-domain value="other"/>

                  <default-missing-method-permissions-deny-access value="true"/>

                  <log-system-exceptions value="true"/>

              </subsystem>

              <subsystem xmlns="urn:wildfly:elytron:2.0" final-providers="combined-providers" disallowed-providers="OracleUcrypto">

                  <providers>

                      <aggregate-providers name="combined-providers">

                          <providers name="elytron"/>

                          <providers name="openssl"/>

                      </aggregate-providers>

                      <provider-loader name="elytron" module="org.wildfly.security.elytron"/>

                      <provider-loader name="openssl" module="org.wildfly.openssl"/>

                  </providers>

                  <audit-logging>

                      <file-audit-log name="local-audit" path="audit.log" relative-to="jboss.server.log.dir" format="JSON"/>

                  </audit-logging>

                  <security-domains>

                      <security-domain name="ApplicationDomain" default-realm="ApplicationRealm" permission-mapper="default-permission-mapper">

                          <realm name="ApplicationRealm" role-decoder="groups-to-roles"/>

                          <realm name="local"/>

                      </security-domain>

                      <security-domain name="ManagementDomain" default-realm="ManagementRealm" permission-mapper="default-permission-mapper">

                          <realm name="ManagementRealm" role-decoder="groups-to-roles"/>

                          <realm name="local" role-mapper="super-user-mapper"/>

                      </security-domain>

                  </security-domains>

                  <security-realms>

                      <identity-realm name="local" identity="$local"/>

                      <properties-realm name="ApplicationRealm">

                          <users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>

                          <groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>

                      </properties-realm>

                      <properties-realm name="ManagementRealm">

                          <users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/>

                          <groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>

                      </properties-realm>

                  </security-realms>

                  <mappers>

                      <simple-permission-mapper name="default-permission-mapper" mapping-mode="first">

                          <permission-mapping>

                              <principal name="anonymous"/>

                              <permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>

                              <permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>

                              <permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>

                          </permission-mapping>

                          <permission-mapping match-all="true">

                              <permission class-name="org.wildfly.security.auth.permission.LoginPermission"/>

                              <permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>

                              <permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>

                              <permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>

                          </permission-mapping>

                      </simple-permission-mapper>

                      <constant-realm-mapper name="local" realm-name="local"/>

                      <simple-role-decoder name="groups-to-roles" attribute="groups"/>

                      <constant-role-mapper name="super-user-mapper">

                          <role name="SuperUser"/>

                      </constant-role-mapper>

                  </mappers>

                  <http>

                      <http-authentication-factory name="management-http-authentication" security-domain="ManagementDomain" http-server-mechanism-factory="global">

                          <mechanism-configuration>

                              <mechanism mechanism-name="DIGEST">

                                  <mechanism-realm realm-name="ManagementRealm"/>

                              </mechanism>

                          </mechanism-configuration>

                      </http-authentication-factory>

                      <http-authentication-factory name="application-http-authentication" security-domain="ApplicationDomain" http-server-mechanism-factory="global">

                          <mechanism-configuration>

                              <mechanism mechanism-name="BASIC">

                                  <mechanism-realm realm-name="Application Realm"/>

                              </mechanism>

                              <mechanism mechanism-name="FORM"/>

                          </mechanism-configuration>

                      </http-authentication-factory>

                      <provider-http-server-mechanism-factory name="global"/>

                  </http>

                  <sasl>

                      <sasl-authentication-factory name="management-sasl-authentication" sasl-server-factory="configured" security-domain="ManagementDomain">

                          <mechanism-configuration>

                              <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>

                              <mechanism mechanism-name="DIGEST-MD5">

                                  <mechanism-realm realm-name="ManagementRealm"/>

                              </mechanism>

                          </mechanism-configuration>

                      </sasl-authentication-factory>

                      <sasl-authentication-factory name="application-sasl-authentication" sasl-server-factory="configured" security-domain="ApplicationDomain">

                          <mechanism-configuration>

                              <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>

                              <mechanism mechanism-name="DIGEST-MD5">

                                  <mechanism-realm realm-name="ApplicationRealm"/>

                              </mechanism>

                          </mechanism-configuration>

                      </sasl-authentication-factory>

                      <configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">

                          <properties>

                              <property name="wildfly.sasl.local-user.default-user" value="$local"/>

                          </properties>

                      </configurable-sasl-server-factory>

                      <mechanism-provider-filtering-sasl-server-factory name="elytron" sasl-server-factory="global">

                          <filters>

                              <filter provider-name="WildFlyElytron"/>

                          </filters>

                      </mechanism-provider-filtering-sasl-server-factory>

                      <provider-sasl-server-factory name="global"/>

                  </sasl>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:io:2.0">

                  <worker name="default"/>

                  <buffer-pool name="default"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:infinispan:5.0">

                  <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">

                      <local-cache name="passivation">

                          <locking isolation="REPEATABLE_READ"/>

                          <transaction mode="BATCH"/>

                          <file-store passivation="true" purge="false"/>

                      </local-cache>

                      <local-cache name="persistent">

                          <locking isolation="REPEATABLE_READ"/>

                          <transaction mode="BATCH"/>

                          <file-store passivation="true" purge="false"/>

                      </local-cache>

                  </cache-container>

                  <cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">

                      <local-cache name="passivation">

                          <locking isolation="REPEATABLE_READ"/>

                          <transaction mode="BATCH"/>

                          <file-store passivation="true" purge="false"/>

                      </local-cache>

                      <local-cache name="persistent">

                          <locking isolation="REPEATABLE_READ"/>

                          <transaction mode="BATCH"/>

                          <file-store passivation="true" purge="false"/>

                      </local-cache>

                  </cache-container>

                  <cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan">

                      <local-cache name="entity">

                          <transaction mode="NON_XA"/>

                          <object-memory size="10000"/>

                          <expiration max-idle="100000"/>

                      </local-cache>

                      <local-cache name="local-query">

                          <transaction mode="NONE"/>

                          <expiration max-idle="100000"/>

                      </local-cache>

                      <local-cache name="timestamps">

                          <transaction mode="NONE"/>

                      </local-cache>

                  </cache-container>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>

              <subsystem xmlns="urn:jboss:domain:jca:5.0">

                  <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>

                  <bean-validation enabled="true"/>

                  <default-workmanager>

                      <short-running-threads>

                          <core-threads count="50"/>

                          <queue-length count="50"/>

                          <max-threads count="50"/>

                          <keepalive-time time="10" unit="seconds"/>

                      </short-running-threads>

                      <long-running-threads>

                          <core-threads count="50"/>

                          <queue-length count="50"/>

                          <max-threads count="50"/>

                          <keepalive-time time="10" unit="seconds"/>

                      </long-running-threads>

                  </default-workmanager>

                  <cached-connection-manager/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>

              <subsystem xmlns="urn:jboss:domain:jmx:1.3">

                  <expose-resolved-model/>

                  <expose-expression-model/>

                  <remoting-connector use-management-endpoint="false"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jpa:1.1">

                  <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jsf:1.1"/>

              <subsystem xmlns="urn:jboss:domain:jsr77:1.0"/>

              <subsystem xmlns="urn:jboss:domain:mail:3.0">

                  <mail-session name="default" jndi-name="java:jboss/mail/Default">

                      <smtp-server outbound-socket-binding-ref="mail-smtp"/>

                  </mail-session>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:messaging-activemq:3.0">

                  <server name="default">

                      <security-setting name="#">

                          <role name="guest" send="true" consume="true" create-non-durable-queue="true" delete-non-durable-queue="true"/>

                      </security-setting>

                      <address-setting name="#" dead-letter-address="jms.queue.DLQ" expiry-address="jms.queue.ExpiryQueue" max-size-bytes="10485760" page-size-bytes="2097152" message-counter-history-day-limit="10"/>

                      <http-connector name="http-connector" socket-binding="http" endpoint="http-acceptor"/>

                      <http-connector name="http-connector-throughput" socket-binding="http" endpoint="http-acceptor-throughput">

                          <param name="batch-delay" value="50"/>

                      </http-connector>

                      <in-vm-connector name="in-vm" server-id="0"/>

                      <http-acceptor name="http-acceptor" http-listener="default"/>

                      <http-acceptor name="http-acceptor-throughput" http-listener="default">

                          <param name="batch-delay" value="50"/>

                          <param name="direct-deliver" value="false"/>

                      </http-acceptor>

                      <in-vm-acceptor name="in-vm" server-id="0"/>

                      <jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/>

                      <jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/>

                      <jms-queue name="WorkflowPlanningQueue" entries="queue/WorkflowPlanningQueue"/>

                      <jms-queue name="WorkflowExecutionQueue" entries="queue/WorkflowExecutionQueue"/>

                      <jms-queue name="CacheAcquisitionQueue" entries="queue/CacheAcquisitionQueue"/>

                      <jms-queue name="AsupQueue" entries="queue/AsupQueue"/>

                      <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory" connectors="in-vm"/>

                      <connection-factory name="RemoteConnectionFactory" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="http-connector"/>

                      <pooled-connection-factory name="activemq-ra" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm" transaction="xa"/>

                  </server>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:naming:2.0">

                  <remote-naming/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>

              <subsystem xmlns="urn:jboss:domain:remoting:4.0">

                  <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:resource-adapters:5.0"/>

              <subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>

              <subsystem xmlns="urn:jboss:domain:sar:1.0"/>

              <subsystem xmlns="urn:jboss:domain:security-manager:1.0">

                  <deployment-permissions>

                      <maximum-set>

                          <permission class="java.security.AllPermission"/>

                      </maximum-set>

                  </deployment-permissions>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:security:2.0">

                  <security-domains>

                      <security-domain name="jboss-management-login">

                          <authentication>

                              <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">

                                  <module-option name="dsJndiName" value="java:/jboss-mysql-ds"/>

                                  <module-option name="principalsQuery" value="select password from wfa.user where name=? and user_role_type = 'admin'"/>

                                  <module-option name="hashAlgorithm" value="SHA-1"/>

                                  <module-option name="hashEncoding" value="base64"/>

                              </login-module>

                          </authentication>

                      </security-domain>

                      <security-domain name="wfa-login">

                          <authentication>

                              <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="sufficient">

                                  <module-option name="dsJndiName" value="java:/jboss-mysql-ds"/>

                                  <module-option name="principalsQuery" value="select password from wfa.user where name=? and user_role_type != 'Backup'"/>

                                  <module-option name="rolesQuery" value="select r.ejb_role, 'Roles' from wfa.user u, wfa.user_role_to_ejb_role r where u.name=? and u.user_role_type=r.user_role_type"/>

                                  <module-option name="hashAlgorithm" value="SHA-1"/>

                                  <module-option name="hashEncoding" value="base64"/>

                                  <module-option name="unauthenticatedIdentity" value="guest"/>

                              </login-module>

                              <login-module code="com.netapp.wfa.ldap.LdapLoginModule" flag="required">

                                  <module-option name="daoJndiName" value="java:global/wfa-0.5/user-management-0.5/LdapUsersDaoImpl"/>

                              </login-module>

                              <login-module code="org.jboss.security.ClientLoginModule" flag="required">

                                  <module-option name="restore-login-identity" value="true"/>

                              </login-module>

                          </authentication>

                      </security-domain>

                      <security-domain name="wfa-ws-login">

                          <authentication>

                              <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="sufficient">

                                  <module-option name="dsJndiName" value="java:/jboss-mysql-ds"/>

                                  <module-option name="principalsQuery" value="select password from wfa.user where name=?"/>

                                  <module-option name="rolesQuery" value="select r.ejb_role, 'Roles' from wfa.user u, wfa.user_role_to_ejb_role r where u.name=? and u.user_role_type=r.user_role_type"/>

                                  <module-option name="hashAlgorithm" value="SHA-1"/>

                                  <module-option name="hashEncoding" value="base64"/>

                                  <module-option name="unauthenticatedIdentity" value="guest"/>

                              </login-module>

                              <login-module code="com.netapp.wfa.ldap.LdapLoginModule" flag="required">

                                  <module-option name="daoJndiName" value="java:global/wfa-0.5/user-management-0.5/LdapUsersDaoImpl"/>

                              </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="RealmUsersRoles" flag="required">

                                  <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>

                                  <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>

                                  <module-option name="realm" value="ApplicationRealm"/>

                                  <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>

              <subsystem xmlns="urn:jboss:domain:transactions:4.0">

                  <core-environment>

                      <process-id>

                          <uuid/>

                      </process-id>

                  </core-environment>

                  <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

                  <object-store path="tx-object-store" relative-to="jboss.server.data.dir"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:undertow:5.0">

                  <buffer-cache name="default"/>

                  <server name="default-server">

                      <http-listener name="default" socket-binding="http" max-post-size="1073741824"/>

                      <https-listener name="https" socket-binding="https" max-post-size="1073741824" security-realm="SSLRealm"/>

                      <host name="default-host" alias="localhost">

                          <location name="/" handler="welcome-content"/>

                          <location name="/help/workflow" handler="workflow-help"/>

                          <filter-ref name="server-header"/>

                          <filter-ref name="x-powered-by-header"/>

                          <single-sign-on path="/" http-only="true" secure="true"/>

                      </host>

                  </server>

                  <servlet-container name="default" default-session-timeout="180">

                      <jsp-config/>

                      <websockets/>

                  </servlet-container>

                  <handlers>

                      <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>

                      <file name="workflow-help" path="${jboss.home.dir}/standalone/workflow-help"/>

                  </handlers>

                  <filters>

                      <response-header name="server-header" header-name="Server" header-value="WildFly/11"/>

                      <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>

                  </filters>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:webservices:2.0">

                  <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>

                  <endpoint-config name="Standard-Endpoint-Config"/>

                  <endpoint-config name="Recording-Endpoint-Config">

                      <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">

                          <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>

                      </pre-handler-chain>

                  </endpoint-config>

                  <client-config name="Standard-Client-Config"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:weld:4.0"/>

          </profile>

          <interfaces>

              <interface name="management">

                  <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

              </interface>

              <interface name="public">

                  <inet-address value="${jboss.bind.address:127.0.0.1}"/>

              </interface>

              <interface name="unsecure">

                  <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

              </interface>

              <interface name="local">

                  <inet-address value="127.0.0.1"/>

              </interface>

          </interfaces>

          <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

              <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:7777}"/>

              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:7770}"/>

              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:7443}"/>

              <socket-binding name="ajp" port="7009"/>

              <socket-binding name="http" interface="local" port="${http.port}"/>

              <socket-binding name="https" port="${https.port}"/>

              <socket-binding name="jacorb" interface="unsecure" port="7528"/>

              <socket-binding name="jacorb-ssl" interface="unsecure" port="7529"/>

              <socket-binding name="messaging" port="7445"/>

              <socket-binding name="messaging-throughput" port="7455"/>

              <socket-binding name="remoting" port="7447"/>

              <socket-binding name="txn-recovery-environment" port="7712"/>

              <socket-binding name="txn-status-manager" port="7713"/>

              <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:7876}"/>

              <outbound-socket-binding name="mail-smtp">

                  <remote-destination host="localhost" port="25"/>

              </outbound-socket-binding>

          </socket-binding-group>

      </server>