Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimal dependency on RestEasy when using Keycloak Java admin api

Keycloak Java Admin api works nice, however, including RestEasy dependencies in our pom.xml causing issues like this:

RESTEASY002307: Failed to execute
javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path: http://localhost:8080/

I wonder is there any configuration for RestEasy to work with "minimal" settings which are required by Keycloak Java Admin api? Nothing more than that. What we have tried so far without success:

  • Disabling rest easy scanning in web.xml
  • Map RestEasy to dummy url like /restdummy

Our pom.xml:

    <dependency>
        <groupId>org.keycloak</groupId>
        <artifactId>keycloak-admin-client</artifactId>
        <version>4.6.0.Final</version>
    </dependency>

    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-client</artifactId>
        <version>3.6.2.Final</version>
    </dependency>

    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jackson2-provider</artifactId>
        <version>3.6.2.Final</version>
    </dependency>

Any advice is welcome.

like image 575
Dario Avatar asked Nov 25 '25 08:11

Dario


2 Answers

You can find the dependencies from mvnrepository for keycloak-admin-client

like image 71
ravthiru Avatar answered Nov 27 '25 21:11

ravthiru


It seems that downgrading to earlier versions like 3.1.0. solved mentioned issue. However, it would be nice not to depend on whole framework just to use client functionalities.

like image 38
Dario Avatar answered Nov 27 '25 21:11

Dario



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!