[keycloak-user] java.net.ConnectException: JBAS012144: Could not connect to http-remoting://127.0.0.1:9990

Bruno Oliveira bruno at abstractj.org
Tue Apr 18 16:25:28 EDT 2017


If you're starting WildFly on port 8180. I believe that you should
specify -Dwildfly.port=10090 for deployment.

The quickstarts depend on keycloak-tests-helper, which wasn't released yet.
That's the reason why it points to the same release specified on Keycloak
master branch. Here's what you can do to workaround this while we fix:

- git clone https://github.com/keycloak/keycloak.git && cd keycloak && mvn
clean install -Pdistribution -DskipTests=true

I hope it helps.


On Tue, Apr 18, 2017 at 2:52 PM Tanudjaja, Francisco <
francisco.tanudjaja at bina.roche.com> wrote:

> Hi,
>
> I've followed the instructions on
> https://keycloak.gitbooks.io/documentation/content/
> authorization_services/topics/getting-started/hello-world/deploy.html
>
> I have the following keycloak.json in the 'config' directory of
> ~/path/to/keycloak-quickstarts/app-profile-jee-vanilla
>
> """
> {
>   "realm": "Foo",
>   "auth-server-url": "http://localhost:8180/auth",
>   "ssl-required": "external",
>   "resource": "fclient",
>   "credentials": {
>     "secret": "0749b4fc-db40-410a-ac2c-8837ce206c5d"
>   },
>   "policy-enforcer": {}
> }
> """
>
> Got the following error and wasn't able to find any references to port 9990
> in the configuration.
>
> [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-
> maven-plugin:1.0.1.Final:deploy (default-cli) on project
> keycloak-app-profile-jee-vanilla: Could not execute goal deploy on
>
> /Users/tanudjaf/git/keycloak-quickstarts/app-profile-jee-vanilla/target/vanilla.war.
> Reason: I/O Error could not execute operation '{
> [ERROR] "operation" => "read-attribute",
> [ERROR] "address" => [],
> [ERROR] "name" => "launch-type"
> [ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to
> http-remoting://127.0.0.1:9990. The connection timed out
> [ERROR] -> [Help 1]
>
> Please advise.
>
>
> -----------------------------------------------------
> Additional note:
>
> I jumped a few hoops while navigating the documentation. Its possible the
> issue is caused by my changes I've made. For reference, I've listed them
> below
>
> ## wrong link on github in https://keycloak.gitbooks.io/
> documentation/content/authorization_services/topics/
> getting-started/hello-world/deploy.html
>
> ** easy fix, looks like the folder was renamed
> - $ cd keycloak-quickstarts/app-authz-jee-vanilla
> + $ cd keycloak-quickstarts/app-profile-jee-vanilla
>
>
> ## wrong version on pom
> There is no '3.1.0.CR1-SNAPSHOT' published in maven repo
> See
> -> https://github.com/keycloak/keycloak/blob/3.0.x/boms/adapter/pom.xml
> ->
> https://mvnrepository.com/artifact/org.keycloak.bom/keycloak-adapter-bom
>
> ** resolved by changing pom.xml
> -        <version>3.1.0.CR1-SNAPSHOT</version>
> +        <version>3.0.0.Final</version>
>
>
> ## cannot compile test
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-compiler-plugin:3.1:testCompile (default-testCompile) on project
> keycloak-app-profile-jee-vanilla: Compilation failure: Compilation failure:
> [ERROR] /Users/tanudjaf/git/keycloak-quickstarts/app-profile-jee-
>
> vanilla/src/test/java/org/keycloak/quickstart/ArquillianProfileJeeVanillaTest.java:[41,25]
> package org.keycloak.test does not exist
> ...
>
> ** resolved by removing app-profile-jee-vanilla/src/test/java/org/keycloak/
> quickstart/ArquillianProfileJeeVanillaTest.java
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list