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

Tanudjaja, Francisco francisco.tanudjaja at bina.roche.com
Tue Apr 18 13:49:08 EDT 2017


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


More information about the keycloak-user mailing list