[keycloak-user] docker quickstart example compilation is failing (keycloak 6.0.1) in photoz example

Olivier Rivat orivat at janua.fr
Thu Apr 25 12:15:51 EDT 2019


Hi,


Keyclaok 6.01 docker quickstart compilation is failing with error
java.lang.RuntimeException: Could not obtain configuration from server 
[http://localhost:8180/auth/realms/photoz/.well-known/uma-configuration

The instructions are taken from
https://hub.docker.com/r/abstractj/keycloak-quickstarts?ref=login

The endpoint 
http://localhost:8180/auth/realms/photoz/.well-known/uma-configuration 
deos not exist.
The (real) endpoint is 
http://localhost:8180/auth/realms/photoz/.well-known/uma2-configuration

This has to be fixed in the docker  quickstart example



Regards,

Olivier Rivat

--------------------------------------------------------------------------------------------------------------------


DEBUG] No <id> element was found in the POM - Getting credentials from 
CLI entry
[DEBUG] No <id> element was found in the POM - Getting credentials from 
CLI entry
[DEBUG] Executing deployment
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 3.474 s
[INFO] Finished at: 2019-04-25T15:49:30+00:00
[INFO] Final Memory: 30M/366M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Final:deploy 
(default-cli) on project photoz-uma-restful-api: Failed to execute goal 
deploy: {"WFLYCTL0062: Composite operatio
n failed and was rolled back. Steps that failed:" => {"Operation step-1" 
=> {"WFLYCTL0080: Failed services" => 
{"jboss.deployment.unit.\"photoz-uma-restful-api.war\".undertow-deployment" 
=> "java.lang.Run
timeException: Could not obtain configuration from server 
[http://localhost:8180/auth/realms/photoz/.well-known/uma-configuration].
[ERROR] Caused by: java.lang.RuntimeException: Could not obtain 
configuration from server 
[http://localhost:8180/auth/realms/photoz/.well-known/uma-configuration].
[ERROR] Caused by: java.lang.RuntimeException: Error executing http 
method [org.apache.http.client.methods.RequestBuilder at 2c0b0edc]. 
Response : null
[ERROR] Caused by: java.net.ConnectException: Connection refused 
(Connection refused)"}}}}
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Final:deploy 
(default-cli) on project photoz-uma-restful-api: Failed to execut
e goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled 
back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: 
Failed services" => {"jboss.deployment.unit.\"photoz-uma-restful-
api.war\".undertow-deployment" => "java.lang.RuntimeException: Could not 
obtain configuration from server 
[http://localhost:8180/auth/realms/photoz/.well-known/uma-configuration].
     Caused by: java.lang.RuntimeException: Could not obtain 
configuration from server 
[http://localhost:8180/auth/realms/photoz/.well-known/uma-configuration].
     Caused by: java.lang.RuntimeException: Error executing http method 
[org.apache.http.client.methods.RequestBuilder at 2c0b0edc]. Response : null
     Caused by: java.net.ConnectException: Connection refused 
(Connection refused)"}}}}
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
     at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
     at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)


------------------------------------------------------------------------------------------------------------------






More information about the keycloak-user mailing list