Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: java.lang.ClassNotFoundException: de.adorsys.keycloak.config.resource.ManagementPermissions #999

Open
Clex1o1 opened this issue Mar 8, 2024 · 2 comments
Labels

Comments

@Clex1o1
Copy link

Clex1o1 commented Mar 8, 2024

Current Behavior

After updating to Keycloak 23.0.a and updating the extensions version to the 5.10 (Keycloak 23.0.1) Keycloak is not starting properly and failed with the error: ERROR: java.lang.ClassNotFoundException: de.adorsys.keycloak.config.resource.ManagementPermissions

Expected Behavior

Clean start up 🙃

Steps To Reproduce

I'm using docker compose to run keycloak. My test setup looks like this:

version: "3"
services:
  keycloak:
    container_name: keycloak
    image: quay.io/keycloak/keycloak:23.0.1
    environment:
      KC_DB: mariadb
      KC_DB_URL_HOST: keycloak-db
      KC_DB_PASSWORD: root
      KC_DB_USERNAME: root
      KC_HOSTNAME: "localhost"
      KEYCLOAK_ADMIN: admin
      KEYCLOAK_ADMIN_PASSWORD: admin
    restart: unless-stopped
    depends_on:
      - keycloak-db
    volumes:
      - "./extensions/:/opt/keycloak/providers/"
    command:
      - start-dev
    ports:
      - "8081:8080"

  keycloak-db:
    restart: unless-stopped
    image: mariadb
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: "keycloak"

  adminer:
    image: adminer
    restart: unless-stopped
    ports:
      - 8080:8080

after docker-compose up it crashes with the error:

keycloak       | ERROR: Unexpected error when starting the server in (development) mode
keycloak       | ERROR: Failed to start quarkus
keycloak       | ERROR: java.lang.ClassNotFoundException: de.adorsys.keycloak.config.resource.ManagementPermissions
keycloak       | ERROR: de.adorsys.keycloak.config.resource.ManagementPermissions


### Environment

- Keycloak Version: 23.0.1
- keycloak-config-cli Version: 5.10
- Docker compose


### Anything else?

_No response_
@Clex1o1 Clex1o1 added the bug label Mar 8, 2024
@jonasvoelcker
Copy link
Collaborator

Hi @Clex1o1, version 23.0.1 is pretty old, may you try again with 23.0.7?

@Clex1o1
Copy link
Author

Clex1o1 commented Mar 15, 2024

Hi @jonasvoelcker! Thank you for your response. I got the same error with 23.0.7 and 24.0.1. I used the different keycloak images and the different jar files from the latest release v5.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants