JBAS017119: A security realm has been specified but no supported mechanism identified
natedrake2 May 15, 2014 3:46 PMI'm attempting to upgrade our app from JBoss 7.1.1 to Wildfly 8.1 RC2 and I'm running into the following error on startup:
[exec] 2014-05-15 15:39:29,206 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss."remoting ".remoting-http-upgrade-service.http-management: org.jboss.msc.service.StartException in service jboss."remoting ".remoting-http-upgrade-service.http-management: Failed to start service
[exec] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
[exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
[exec] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_55]
[exec] Caused by: java.lang.IllegalStateException: JBAS017119: A security realm has been specified but no supported mechanism identified
[exec] at org.jboss.as.remoting.RealmSecurityProvider.getOptionMap(RealmSecurityProvider.java:175) [wildfly-remoting-8.1.0.CR2.jar:8.1.0.CR2]
[exec] at org.jboss.as.remoting.RemotingHttpUpgradeService.start(RemotingHttpUpgradeService.java:128) [wildfly-remoting-8.1.0.CR2.jar:8.1.0.CR2]
[exec] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
[exec] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
[exec] ... 3 more
[exec]
Relevant sections of standalone.xml:
<subsystem xmlns="urn:jboss:domain:remoting:2.0">
<endpoint worker="default"/> <!-- new in 8 -->
<http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
</subsystem>
<security-realm name="ApplicationRealm">
<authentication>
<local default-user="$local" allowed-users="*" skip-group-loading="true"/> <!-- new in 8 -->
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization> <!-- new in 8 -->
<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
<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"> <!-- new in 8 - was RealmUsersRole -->
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
I'm not sure what's going wrong.