Skip to content

Instantly share code, notes, and snippets.

@tecsyscom
Created April 17, 2017 07:38
Show Gist options
  • Save tecsyscom/54e2380ba35ee66d73ad62b5c05a6adb to your computer and use it in GitHub Desktop.
Save tecsyscom/54e2380ba35ee66d73ad62b5c05a6adb to your computer and use it in GitHub Desktop.
fail to install keycloak app in wildfly
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.700 s
[INFO] Finished at: 2017-04-17T15:33:51+08:00
[INFO] Final Memory: 27M/242M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) on project examples-basicauth: Execution default-cli of goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Final:deploy failed: WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
@tecsyscom
Copy link
Author

after you install keycloak adapter to widlfly (10)

➜ basic-auth mvn install wildfly:deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Keycloak Examples - Basic Auth 3.0.0.Final
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ examples-basicauth ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ examples-basicauth ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ examples-basicauth ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ examples-basicauth ---
[INFO] Executing: /bin/sh -c cd /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth && git rev-parse --verify HEAD
[INFO] Working directory: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth
[INFO] Storing buildNumber: UNKNOWN at timestamp: 1492414692007
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git

[INFO] Executing: /bin/sh -c cd /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth && git rev-parse --verify HEAD
[INFO] Working directory: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ examples-basicauth ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ examples-basicauth ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ examples-basicauth ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ examples-basicauth ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ examples-basicauth ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ examples-basicauth ---
[INFO] Packaging webapp
[INFO] Assembling webapp [examples-basicauth] in [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/target/basicauth]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/src/main/webapp]
[INFO] Webapp assembled in [158 msecs]
[INFO] Building war: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/target/basicauth.war
[INFO]
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ examples-basicauth ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ examples-basicauth ---
[INFO] Installing /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/target/basicauth.war to /Users/mingderwang/.m2/repository/org/keycloak/examples-basicauth/3.0.0.Final/examples-basicauth-3.0.0.Final.war
[INFO] Installing /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/pom.xml to /Users/mingderwang/.m2/repository/org/keycloak/examples-basicauth/3.0.0.Final/examples-basicauth-3.0.0.Final.pom
[INFO] Installing /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/target/basicauth-sources.jar to /Users/mingderwang/.m2/repository/org/keycloak/examples-basicauth/3.0.0.Final/examples-basicauth-3.0.0.Final-sources.jar
[INFO]
[INFO] >>> wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) > package @ examples-basicauth >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ examples-basicauth ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ examples-basicauth ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ examples-basicauth ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ examples-basicauth ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ examples-basicauth ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ examples-basicauth ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ examples-basicauth ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ examples-basicauth ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ examples-basicauth ---
[INFO] No tests to run.
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ examples-basicauth ---
[INFO] Packaging webapp
[INFO] Assembling webapp [examples-basicauth] in [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/target/basicauth]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/src/main/webapp]
[INFO] Webapp assembled in [5 msecs]
[INFO] Building war: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/basic-auth/target/basicauth.war
[INFO]
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ examples-basicauth ---
[INFO]
[INFO] <<< wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) < package @ examples-basicauth <<<
[INFO]
[INFO] --- wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) @ examples-basicauth ---
Apr 17, 2017 3:38:17 PM org.xnio.Xnio
INFO: XNIO version 3.3.1.Final
Apr 17, 2017 3:38:17 PM org.xnio.nio.NioXnio
INFO: XNIO NIO Implementation Version 3.3.1.Final
Apr 17, 2017 3:38:17 PM org.jboss.remoting3.EndpointImpl
INFO: JBoss Remoting version 4.0.9.Final
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.674 s
[INFO] Finished at: 2017-04-17T15:38:19+08:00
[INFO] Final Memory: 27M/216M
[INFO] ------------------------------------------------------------------------

@tecsyscom
Copy link
Author

10669* cd keycloak-3.0.0.Final
10670* unzip /tmp/keycloak-wildfly-adapter-dist-3.0.0.Final.zip
10673* cd keycloak-examples-3.0.0.Final
10675* cd basic-auth
10678 bin/standalone.sh
10680 ls
10681 ./bin/jboss-cli.sh --file=adapter-install-offline.cli
10682 cd bin
10683 ls adapter-install-offline.cli
10684 ./jboss-cli.sh --file=adapter-install-offline.cli
10685 cd ..
10686 ./bin/standalone.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment