Proxy users remain logged in when logged out in the backend
by Niko Köbler
Hi,
I think there’s a state problem when using applications behind a Keycloak Proxy solution.
This is our scenario:
An application is „secured“ only behind a Keycloak proxy.
In some of our use cases, the session will be killed/logged out in the backend, before (proxy cookie) timeout.
As now the proxy cookie is still set (and valid), the proxy assumes the user still to be logged in and injects still the header fields. The proxy doesn’t know that the user has been logged out.
We switched now the „always-refresh-token“ option to „true“ in the proxy application configuration and it works as expected. But this will have impacts on performance and is not our preferred way of handling this issue.
Is there any other way of notifying the proxy of logged out users?
Can we use the Admin URL for this? If yes, how?
Regards,
- Niko
9 years, 10 months
Setting the default HTTP session timeout - HttpSession.html#setMaxInactiveInterval
by Mashama McFarlane
I am using KeyCloak 1.1.0.Final on Wildfly 8.1. I am wondering if it is
possible for the adapter to set the max inactive interval for servlet
container session. In my case I would like the servlet session timeout to
be equal to the SSO session timeout externally managed and configured
through KeyCloak. If doesn't make sense for the adapter to do this then
how can I do it in my application logic?
9 years, 10 months
Annoying refresh in 1.1.0 Final
by Felipe Braun Azambuja
Hello,
We're testing Keycloak to use in some of our apps, specifically with
SAML. But it's not the case I'm reaching out to you :)
We were using 1.1.0.Beta2 so far, and when started to create a REST
client for the admin, we got some "Internal Server Error", but no log to
help the dev. So, upgraded to 1.1.0.Final (WAR dist) just now.
ANNOYING refresh after logged in the admin, making it nearly impossible
to configure the realm -- something like every 5 seconds. And when going
to another configuration part (say, Applications), it appears quickly
"*Error!* Not found" in a red box on the top of the page, but it opens
correctly.
Tried to see if was some garbage from the previous WildFly install, so
did a fresh install too, but nothing different. Also got the appliance
dist, and got the same annoying refresh and "not found" error.
Has anyone seen this?
--
Felipe Braun Azambuja
DBA
Tecnologia da Informação e Comunicação
(48) 3281 9577
felipe.braun(a)intelbras.com.br
Esta mensagem, incluindo seus anexos, contém informações protegidas por lei, sujeitas a privilégios e/ou confidencialidades, não podendo ser retransmitida, arquivada, divulgada ou copiada sem autorização do remetente. O remetente utiliza o correio eletrônico no exercício do seu trabalho ou em razão dele, eximindo esta instituição de qualquer responsabilidade por utilização indevida. Caso tenha recebido esta mensagem por engano, por favor informe o remetente respondendo imediatamente a este e-mail, e em seguida apague-a do seu computador.
The information contained in this e-mail and its attachments are protected by law, subjected to privilege and/or confidentiality and cannot be retransmitted, filed, disclosed or copied without authorization from the sender. The sender uses the electronic mail in the exercise of his/her work or by virtue thereof, and the institution accepts no liability from its undue use. If you have received this message by mistake, please notify us immediately by returning the e-mail and deleting this message from your system.
9 years, 10 months
AssertionConsumerServiceURL Requirement in AuthnRequest
by Jacob D'Onofrio
Hi,
I am experimenting with using keycloak (1.1.0.Final) running on wildfly
8.2.0.Final as an IDP for a service which is running on WebLogic 10.3.6.
When WebLogic sends the request to keycloak, I get a NullPointerException
like so:
Caused by: java.lang.NullPointerException
at
org.keycloak.protocol.saml.SamlService$BindingProtocol.loginRequest(SamlService.java:195)
[keycloak-saml-protocol-1.1.0.Final.jar:1.1.0.Final]
at
org.keycloak.protocol.saml.SamlService$BindingProtocol.handleSamlRequest(SamlService.java:175)
[keycloak-saml-protocol-1.1.0.Final.jar:1.1.0.Final]
at
org.keycloak.protocol.saml.SamlService$PostBindingProtocol.execute(SamlService.java:320)
[keycloak-saml-protocol-1.1.0.Final.jar:1.1.0.Final]
at
org.keycloak.protocol.saml.SamlService.postBinding(SamlService.java:413)
[keycloak-saml-protocol-1.1.0.Final.jar:1.1.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_65]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_65]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606)
[rt.jar:1.7.0_65]
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
[resteasy-jaxrs-3.0.10.Final.jar:]
at
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
[resteasy-jaxrs-3.0.10.Final.jar:]
at
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
[resteasy-jaxrs-3.0.10.Final.jar:]
at
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)
[resteasy-jaxrs-3.0.10.Final.jar:]
at
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)
[resteasy-jaxrs-3.0.10.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
[resteasy-jaxrs-3.0.10.Final.jar:]
... 39 more
I truncated the stack trace a bit. Looks like the method loginRequest of
SamlService.BindingProtocol expects that the AuthNRequest token specify a
AssertionConsumerServiceURL attribute, which WebLogic is not setting,
however the SAML documentation states that the attribute is optional.
I wanted to check here before I posted a JIRA issue if this is a bug, or
intended behavior.
Thanks,
Jacob
9 years, 10 months
Ldap User Federation Providers
by Adam Daduev
Hi!
I'm new in Keycloak.
I use ldap as user federation providers, all work fine, but in my ldap
storeв user info, as user phone number, department and so on, when i add
user from ldap to keycloak database, keycloak copy username, mail and
nothing more.
Can i copy another info or override keycloak principal?
I think the Keycloak great thing and has a good future.
Thanks.
9 years, 10 months
Keycloak Adapters
by Raghu Prabhala
Dev team - A philosophical question about the adapters. Rather than building so many adapters for different Java Web containers including different versions, would it make sense to build a single Servlet Filter that would take care of all those cases and even other containers from Oracle/IBM etc?
Raghu
9 years, 10 months
Possibility to get the keycloak session timeout value per Java-Script
by Christoph Machnik
Hi,
I want to show an info, befoe the session runs in a timeout, so that the user can react and not be logged out. For this i need to read the session timeout that is configuresd in the keycloak admin console. is there a possibility to get the timeout value in javascript ?
9 years, 10 months
Re: [keycloak-user] ClassNotFoundException: org.xnio.OptionMap
by Pablo N
I checked what you commented and this dependency is there:
<module xmlns="urn:jboss:module:1.1"
name="org.keycloak.keycloak-undertow-adapter">
<resources>
<resource-root path="keycloak-undertow-adapter-1.1.0.Final.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api"/>
<module name="org.bouncycastle"/>
<module name="org.codehaus.jackson.jackson-core-asl"/>
<module name="org.codehaus.jackson.jackson-mapper-asl"/>
<module name="org.codehaus.jackson.jackson-xc"/>
<module name="org.apache.httpcomponents" />
<module name="javax.servlet.api"/>
<module name="org.jboss.logging"/>
<module name="org.jboss.xnio"/>
<module name="io.undertow.core"/>
<module name="io.undertow.servlet"/>
<module name="org.keycloak.keycloak-adapter-core"/>
<module name="org.keycloak.keycloak-core"/>
</dependencies>
</module>
2015-02-04 17:28 GMT+01:00 Michael Gerber <gerbermichi(a)me.com>:
> Hi,
>
> I had once a similiar issue...
>
> Have a look at the module.xml file in:
> modules\system\layers\base\org\keycloak\keycloak-undertow-adapter\main
>
> Is the module org.jboss.xnio listed in the dependencies section?
>
> Best
> Michael
>
> Am 04. Februar 2015 um 16:47 schrieb Pablo N <panulab(a)gmail.com>:
>
>
> Hello,
>
> I was running my web application in Wildfly 8.2 and Keycloak 1.0.4.Final
> and everything worked as expected.
>
> After updating Keycloak to version 1.1.0.Final (also wildfly adapter
> version) I get the following error when I try to access my application:
>
> 08:32:41,271 ERROR [io.undertow.request] (default task-11) UT005023:
> Exception handling request to /gui/main/home: java.lang.NoClassDefFo
> undError: org/xnio/OptionMap
> at
> org.keycloak.adapters.undertow.SavedRequest.trySaveRequest(SavedRequest.java:49)
> [keycloak-undertow-adapter-1.1.0.Final.jar:1.1.0.Fina
> l]
> at
> org.keycloak.adapters.undertow.ServletSessionTokenStore.saveRequest(ServletSessionTokenStore.java:111)
> [keycloak-undertow-adapter-1.1.
> 0.Final.jar:1.1.0.Final]
> at
> org.keycloak.adapters.OAuthRequestAuthenticator$2.challenge(OAuthRequestAuthenticator.java:182)
> [keycloak-adapter-core-1.1.0.Final.jar
> :1.1.0.Final]
> at
> org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.sendChallenge(AbstractUndertowKeycloakAuthMech.java:68)
> [keycloak-unde
> rtow-adapter-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:330)
> [undertow-core-1.1.0.Final.jar:
> 1.1.0.Final]
> at
> io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:349)
> [undertow-core-1.1.0.Final.jar:
> 1.1.0.Final]
> at
> io.undertow.security.impl.SecurityContextImpl$ChallengeSender.access$300(SecurityContextImpl.java:314)
> [undertow-core-1.1.0.Final.jar:
> 1.1.0.Final]
> at
> io.undertow.security.impl.SecurityContextImpl.sendChallenges(SecurityContextImpl.java:135)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
>
> at
> io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:109)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
>
> at
> io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:114)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
>
> at
> io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54)
> [undert
> ow-servlet-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
>
> at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
> [undertow-core-1.
> 1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
> [undertow-core-1.1.
> 0.Final.jar:1.1.0.Final]
> at
> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.ja
> va:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
> [undert
> ow-servlet-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
> [undertow-core-1.
> 1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
> [unde
> rtow-servlet-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
> [undertow-core-1.1.0.Final.jar:1.1.
> 0.Final]
> at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
> [keycloak-undertow-ada
> pter-1.1.0.Final.jar:1.1.0.Final]
> at
> org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
> [keycloak-undertow-ada
> pter-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
> [undertow-servlet-1.1.0.Final.ja
> r:1.1.0.Final]
> at
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
> [undertow-servlet-1.1.0.Final.jar:1
> .1.0.Final]
> at
> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
> [undertow-servlet-1.1.0.Final.jar:1.1.0.F
> inal]
> at
> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
> [undertow-servlet-1.1.0.Final.jar:1
> .1.0.Final]
> at
> io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
> [undertow-core-1.1.0.Final.jar:1.1.0.Final]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [rt.jar:1.8.0_11]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [rt.jar:1.8.0_11]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
> Caused by: java.lang.ClassNotFoundException: org.xnio.OptionMap from
> [Module "deployment.gui-web-0.14.0-SNAPSHOT.war:main" from Service M
> odule Loader]
> at
> org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
> [jboss-modules.jar:1.3.3.Final]
> at
> org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
> [jboss-modules.jar:1.3.3.Final]
> at
> org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
> [jboss-modules.jar:1.3.3.Final]
> at
> org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
> [jboss-modules.jar:1.3.3.Final]
> at
> org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
> [jboss-modules.jar:1.3.3.Final]
> ... 36 more
>
> As I can see this error was discovered and solved (
> https://issues.jboss.org/browse/KEYCLOAK-899) so I dont know if any
> migration change is pending from my side.
>
> Thank you very much for your help
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
9 years, 10 months
Re: ClassNotFoundException: org.xnio.OptionMap
by Michael Gerber
Hi,
I had once a similiar issue...
Have a look at the module.xml file in:
modules\system\layers\base\org\keycloak\keycloak-undertow-adapter\main
Is the module org.jboss.xnio listed in the dependencies section?
Best
Michael
Am 04. Februar 2015 um 16:47 schrieb Pablo N <panulab(a)gmail.com>:
Hello,
I was running my web application in Wildfly 8.2 and Keycloak 1.0.4.Final and everything worked as expected.
After updating Keycloak to version 1.1.0.Final (also wildfly adapter version) I get the following error when I try to access my application:
08:32:41,271 ERROR [io.undertow.request] (default task-11) UT005023: Exception handling request to /gui/main/home: java.lang.NoClassDefFo
undError: org/xnio/OptionMap
at org.keycloak.adapters.undertow.SavedRequest.trySaveRequest(SavedRequest.java:49) [keycloak-undertow-adapter-1.1.0.Final.jar:1.1.0.Fina
l]
at org.keycloak.adapters.undertow.ServletSessionTokenStore.saveRequest(ServletSessionTokenStore.java:111) [keycloak-undertow-adapter-1.1.
0.Final.jar:1.1.0.Final]
at org.keycloak.adapters.OAuthRequestAuthenticator$2.challenge(OAuthRequestAuthenticator.java:182) [keycloak-adapter-core-1.1.0.Final.jar
:1.1.0.Final]
at org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.sendChallenge(AbstractUndertowKeycloakAuthMech.java:68) [keycloak-unde
rtow-adapter-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:330) [undertow-core-1.1.0.Final.jar:
1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:349) [undertow-core-1.1.0.Final.jar:
1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl$ChallengeSender.access$300(SecurityContextImpl.java:314) [undertow-core-1.1.0.Final.jar:
1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl.sendChallenges(SecurityContextImpl.java:135) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:109) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:114) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54) [undert
ow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.
1.0.Final.jar:1.1.0.Final]
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.
0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.ja
va:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undert
ow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.
1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [unde
rtow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.
0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) [keycloak-undertow-ada
pter-1.1.0.Final.jar:1.1.0.Final]
at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) [keycloak-undertow-ada
pter-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.ja
r:1.1.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1
.1.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.F
inal]
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1
.1.0.Final]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
Caused by: java.lang.ClassNotFoundException: org.xnio.OptionMap from [Module "deployment.gui-web-0.14.0-SNAPSHOT.war:main" from Service M
odule Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
... 36 more
As I can see this error was discovered and solved (https://issues.jboss.org/browse/KEYCLOAK-899) so I dont know if any migration change is pending from my side.
Thank you very much for your help
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
9 years, 10 months
ClassNotFoundException: org.xnio.OptionMap
by Pablo N
Hello,
I was running my web application in Wildfly 8.2 and Keycloak 1.0.4.Final
and everything worked as expected.
After updating Keycloak to version 1.1.0.Final (also wildfly adapter
version) I get the following error when I try to access my application:
08:32:41,271 ERROR [io.undertow.request] (default task-11) UT005023:
Exception handling request to /gui/main/home: java.lang.NoClassDefFo
undError: org/xnio/OptionMap
at
org.keycloak.adapters.undertow.SavedRequest.trySaveRequest(SavedRequest.java:49)
[keycloak-undertow-adapter-1.1.0.Final.jar:1.1.0.Fina
l]
at
org.keycloak.adapters.undertow.ServletSessionTokenStore.saveRequest(ServletSessionTokenStore.java:111)
[keycloak-undertow-adapter-1.1.
0.Final.jar:1.1.0.Final]
at
org.keycloak.adapters.OAuthRequestAuthenticator$2.challenge(OAuthRequestAuthenticator.java:182)
[keycloak-adapter-core-1.1.0.Final.jar
:1.1.0.Final]
at
org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.sendChallenge(AbstractUndertowKeycloakAuthMech.java:68)
[keycloak-unde
rtow-adapter-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:330)
[undertow-core-1.1.0.Final.jar:
1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:349)
[undertow-core-1.1.0.Final.jar:
1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl$ChallengeSender.access$300(SecurityContextImpl.java:314)
[undertow-core-1.1.0.Final.jar:
1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl.sendChallenges(SecurityContextImpl.java:135)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:109)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:114)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54)
[undert
ow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
[undertow-core-1.
1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
[undertow-core-1.1.
0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.ja
va:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
[undert
ow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
[undertow-core-1.
1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
[unde
rtow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
[undertow-core-1.1.0.Final.jar:1.1.
0.Final]
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
[keycloak-undertow-ada
pter-1.1.0.Final.jar:1.1.0.Final]
at
org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
[keycloak-undertow-ada
pter-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
[undertow-servlet-1.1.0.Final.ja
r:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
[undertow-servlet-1.1.0.Final.jar:1
.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
[undertow-servlet-1.1.0.Final.jar:1.1.0.F
inal]
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
[undertow-servlet-1.1.0.Final.jar:1
.1.0.Final]
at
io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_11]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
Caused by: java.lang.ClassNotFoundException: org.xnio.OptionMap from
[Module "deployment.gui-web-0.14.0-SNAPSHOT.war:main" from Service M
odule Loader]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
[jboss-modules.jar:1.3.3.Final]
... 36 more
As I can see this error was discovered and solved (
https://issues.jboss.org/browse/KEYCLOAK-899) so I dont know if any
migration change is pending from my side.
Thank you very much for your help
9 years, 10 months