認証と認可 Keycloak 入門 第2版 2025年3月28日 第2版第1刷
のサンプルプログラムを実行した結果です。
Ubuntu 25.04 で行いました。
Java のバージョン
$ java --version
openjdk 21.0.7 2025-04-15
OpenJDK Runtime Environment (build 21.0.7+6-Ubuntu-0ubuntu125.04)
OpenJDK 64-Bit Server VM (build 21.0.7+6-Ubuntu-0ubuntu125.04, mixed mode, sharing)
サンプルクライアント
P165 に記述されています。
実行コマンド
./mvnw spring-boot:run
実行結果
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.296 s
[INFO] Finished at: 2025-05-06T14:02:00+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project clientapp:
Fatal error compiling: エラー: リリース・バージョン17はサポートされていません -> [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.
サンプル API サーバー
P166 に記述されています。
実行コマンド
./mvnw spring-boot:run
実行結果
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.324 s
[INFO] Finished at: 2025-05-06T14:01:47+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project resourceserver:
Fatal error compiling: エラー: リリース・バージョン21はサポートされていません -> [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.