thanks Marek,

it was coming from my provider jar depending on another jar that has a bean.xml in it. don't know why but when i take off the bean.xml everything works fine and when i put it back -used to load some CDI stuff at runtime- it does not work anymore ..

thanks anyway we have decided to do things slightly differently.

On Wed, Jan 21, 2015 at 5:06 PM, Marek Posolda <mposolda@redhat.com> wrote:
Hi,

another possible workaround is to add realm public key directly to configuration of your adapter. In that case it doesn't need to be downloaded remotely from Keycloak. Something like this: https://github.com/keycloak/keycloak/blob/master/examples/demo-template/customer-app/src/main/webapp/WEB-INF/keycloak.json#L4

You can also try to update to newest 1.1.0.Beta2, which has some additional fixes (or wait for 1.1.0.Final which is going to be released quite soon).

Also are there any other errors in server log? Since it returns "status 500" from keycloak server, I would suspect there will be some error in keycloak server log too?

Marek


On 21.1.2015 14:38, Alexander Chriztopher wrote:
Hi Guys,

Here and then we are getting this error on a server that used to work nicely and without any apparent reason :

14:33:58,380 ERROR [io.undertow.request] [handleFirstRequest] (default task-2) UT005022: Exception generating error page /error.cv: java.lang.RuntimeException: java.lang.RuntimeException: Unable to resolve realm public key remotely, status = 500
at io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:408) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:319) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:263) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.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.RuntimeException: Unable to resolve realm public key remotely, status = 500
at org.keycloak.adapters.AdapterDeploymentContext.resolveRealmKey(AdapterDeploymentContext.java:107) [keycloak-adapter-core-1.1.0.Beta1.jar:1.1.0.Beta1]
at org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:82) [keycloak-adapter-core-1.1.0.Beta1.jar:1.1.0.Beta1]
at org.keycloak.adapters.undertow.UndertowAuthenticatedActionsHandler.handleRequest(UndertowAuthenticatedActionsHandler.java:61) [keycloak-undertow-adapter-1.1.0.Beta1.jar:1.1.0.Beta1]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:229) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:172) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:402) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

This happens on dev servers and we don't know what is causing this as it happens very rarely and the only workout found till now is to restart with a fresh install.

We are using Wildfly with keycloak war.

Thanks for any help.


_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user


_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user