question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make Keycloak Model Map JPA module JDK 17 ready

See original GitHub issue

Description

I built Keycloak using OpenJDK 17.0.2 and maven 3.8.4 (using mvn clean install -DskipTests -Pdistribution on latest main). The build failed for module Keycloak Model Map JPA with the following error:

[ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.3.20.Final:enhance (default) on project keycloak-model-map-jpa: Unable to enhance class: JpaRoleMetadata.class: Failed to enhance class org.keycloak.models.map.storage.jpa.role.entity.JpaRoleMetadata: Unsupported class file major version 61 -> [Help 1]

So atm a (not currently planned) update to use JDK17 as default would fail due to the Problem with the enhancer. So the enhancer needs to be updated i guess.

Discussion

No response

Motivation

Have an easy mid-term upgrade path to use more modern java versions.

Details

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ahus1commented, Mar 22, 2022

@andreaTP - there’s already a linked PR that will be ready once I manage to run the full integration test suite for databases on the internal Jenkins.

0reactions
andreaTPcommented, Mar 21, 2022

Last time I tried, bumping hibernate core and c3p0 to 5.3.25 solved the issue. Since this bump is on a patch release I would consider it safe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keycloak 17.0.0 released
A new approach to documentation in form of server guides to help you install and configure Keycloak. Upgraded Quarkus to 2.7.0.Final.
Read more >
Upgrading Guide - Keycloak
This guide describes how to upgrade Keycloak. It is recommended that you start by upgrading the Keycloak server first and Keycloak adapters ...
Read more >
Keycloak 19.0.0 released
The keycloak-model-legacy-* modules will be available for a longer time ... #9662 JPA map storage: User no-downtime store keycloak storage ...
Read more >
Upgrading Guide - Keycloak
This guide describes how to upgrade Keycloak. It is recommended that you start by upgrading the Keycloak server first and Keycloak adapters ...
Read more >
Server Installation and Configuration Guide - Keycloak
The purpose of this guide is to walk through the steps that need to be completed prior to booting up the Keycloak server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found