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

ejb-security quickstart fails against WildFly

    Details

      Description

      I've been updating the quickstarts to run them against WildFly. The branch is here https://github.com/jaikiran/quickstart/commits/wildfly-upgrade. The ejb-security quickstart in there fails with the following exception on server side:

      20:17:13,523 ERROR [io.undertow.request] (default task-1) Servlet request failed io.undertow.server.HttpServerExchange@5737b8: java.lang.RuntimeException: java.lang.IllegalStateException: No SecurityContext found!
      	at org.wildfly.extension.undertow.security.JAASIdentityManagerImpl.verifyCredential(JAASIdentityManagerImpl.java:145)
      	at org.wildfly.extension.undertow.security.JAASIdentityManagerImpl.verify(JAASIdentityManagerImpl.java:87)
      	at io.undertow.security.impl.BasicAuthenticationMechanism.authenticate(BasicAuthenticationMechanism.java:91) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:279) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:296) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:266) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:52) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:66) [undertow-servlet-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:71) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:26) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:26) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:118) [undertow-servlet-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:106) [undertow-servlet-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:83) [undertow-servlet-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:52) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:544) [undertow-core-1.0.0.Alpha14.jar:1.0.0.Alpha14]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]
      	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
      Caused by: java.lang.IllegalStateException: No SecurityContext found!
      	at org.wildfly.extension.undertow.security.JAASIdentityManagerImpl.verifyCredential(JAASIdentityManagerImpl.java:120)
      	... 33 more
      
      

      P.S: Running the same quickstart against standalone-jbossweb.xml passes.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                jaikiran Jaikiran Pai
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: