Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2045

Missing Dependencies for IO Module

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 8.0.0.Alpha4
    • Fix Version/s: 8.0.0.Beta1
    • Component/s: Security
    • Labels:
      None

      Description

      I Get the following error when I try to Authenticate against a Cutom Login-Module:
      1:
      12:40:09,615 DEBUG [org.jboss.security] (Remoting "pwtest" task-2) PBOX000206: Login failure: javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.as.security.remoting.RemotingLoginModule from [Module "org.wildfly.extension.io:main" from local module loader @487b34b4 (finder: local module finder @10c13a99 (roots: C:\wildfly\modules,C:\wildfly\modules\system\layers\base))]
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:822) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696) [rt.jar:1.7.0_25]
      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext.login(LoginContext.java:594) [rt.jar:1.7.0_25]
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:408)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:345)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:333)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:146)
      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:385)
      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:349)
      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:336)
      at org.jboss.as.domain.management.security.JaasCallbackHandler.handle(JaasCallbackHandler.java:162)
      at org.jboss.as.domain.management.security.SecurityRealmService$1.handle(SecurityRealmService.java:172)
      at org.jboss.as.remoting.RealmSecurityProvider$RealmCallbackHandler.handle(RealmSecurityProvider.java:337)
      at org.jboss.sasl.util.AbstractSaslParticipant.tryHandleCallbacks(AbstractSaslParticipant.java:98)
      at org.jboss.sasl.util.AbstractSaslParticipant.handleCallbacks(AbstractSaslParticipant.java:83)
      at org.jboss.sasl.plain.PlainSaslServer.access$000(PlainSaslServer.java:41)
      at org.jboss.sasl.plain.PlainSaslServer$1.evaluateMessage(PlainSaslServer.java:88)
      at org.jboss.sasl.util.AbstractSaslParticipant.evaluateMessage(AbstractSaslParticipant.java:165)
      at org.jboss.sasl.util.AbstractSaslServer.evaluateResponse(AbstractSaslServer.java:56)
      at org.xnio.sasl.SaslUtils.evaluateResponse(SaslUtils.java:237) [xnio-api-3.1.0.CR6.jar:3.1.0.CR6]
      at org.xnio.sasl.SaslUtils.evaluateResponse(SaslUtils.java:208) [xnio-api-3.1.0.CR6.jar:3.1.0.CR6]
      at org.jboss.remoting3.remote.ServerConnectionOpenListener$AuthStepRunnable.run(ServerConnectionOpenListener.java:450)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      AND

      12:49:38,663 TRACE [org.jboss.security] (Remoting "pwtest" task-1) PBOX000244: Begin abort method
      12:49:38,663 DEBUG [org.jboss.security] (Remoting "pwtest" task-1) PBOX000206: Login failure: javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.auth.spi.DatabaseServerLoginModule from [Module "org.wildfly.extension.io:main" from local module loader @5a0deddc (finder: local module finder @487b34b4 (roots: C:\wildfly\modules,C:\wildfly\modules\system\layers\base))]
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:822) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696) [rt.jar:1.7.0_25]
      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695) [rt.jar:1.7.0_25]
      at javax.security.auth.login.LoginContext.login(LoginContext.java:594) [rt.jar:1.7.0_25]
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:408)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:345)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:333)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:146)
      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:385) [wildfly-security-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:349) [wildfly-security-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:336) [wildfly-security-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
      at org.jboss.as.domain.management.security.JaasCallbackHandler.handle(JaasCallbackHandler.java:162)
      at org.jboss.as.domain.management.security.SecurityRealmService$1.handle(SecurityRealmService.java:172)
      at org.jboss.as.remoting.RealmSecurityProvider$RealmCallbackHandler.handle(RealmSecurityProvider.java:337)
      at org.jboss.sasl.util.AbstractSaslParticipant.tryHandleCallbacks(AbstractSaslParticipant.java:98)
      at org.jboss.sasl.util.AbstractSaslParticipant.handleCallbacks(AbstractSaslParticipant.java:83)
      at org.jboss.sasl.plain.PlainSaslServer.access$000(PlainSaslServer.java:41)
      at org.jboss.sasl.plain.PlainSaslServer$1.evaluateMessage(PlainSaslServer.java:88)
      at org.jboss.sasl.util.AbstractSaslParticipant.evaluateMessage(AbstractSaslParticipant.java:165)
      at org.jboss.sasl.util.AbstractSaslServer.evaluateResponse(AbstractSaslServer.java:56)
      at org.xnio.sasl.SaslUtils.evaluateResponse(SaslUtils.java:237) [xnio-api-3.1.0.CR6.jar:3.1.0.CR6]
      at org.xnio.sasl.SaslUtils.evaluateResponse(SaslUtils.java:208) [xnio-api-3.1.0.CR6.jar:3.1.0.CR6]
      at org.jboss.remoting3.remote.ServerConnectionOpenListener$AuthStepRunnable.run(ServerConnectionOpenListener.java:450)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      12:49:38,684 TRACE [org.jboss.security] (Remoting "pwtest" task-1) PBOX000201: End isValid, result = false
      12:49:38,687 TRACE [org.jboss.security.audit] (Remoting "pwtest" task-1) [Success]Source=org.jboss.as.security.service.SimpleSecurityManager;Action=authentication;principal=ADMINISTRATOR;
      12:49:43,223 TRACE [org.jboss.security] (Remoting "pwtest" task-2) PBOX000200: Begin isValid, principal: ADMINISTRATOR, cache entry: null
      12:49:43,224 TRACE [org.jboss.security] (Remoting "pwtest" task-2) PBOX000209: defaultLogin, principal: ADMINISTRATOR
      12:49:43,225 TRACE [org.jboss.security] (Remoting "pwtest" task-2) PBOX000221: Begin getAppConfigurationEntry(pw-security-domain), size: 5
      12:49:43,226 TRACE [org.jboss.security] (Remoting "pwtest" task-2) PBOX000224: End getAppConfigurationEntry(pw-security-domain), AuthInfo: AppConfigurationEntry[]:
      [0]
      LoginModule Class: org.jboss.as.security.remoting.RemotingLoginModule
      ControlFlag: LoginModuleControlFlag: optional
      Options:
      name=password-stacking, value=useFirstPass
      [1]
      LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule

      Was Able to work around this issue by adding

      <module name="org.jboss.as.security"/>
      <module name="org.picketbox"/>

      to wildfly\modules\system\layers\base\org\wildfly\extension\io\main\module.xml

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ctomc Toma┼ż Cerar
                Reporter:
                ismsteve Steven Rose
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: