0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

認証と認可 Keycloak 入門 第2版のサンプルについて

Last updated at Posted at 2025-05-06

認証と認可 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.

image.png

サンプル 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.

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?