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

Example module.xml #7

Open
asterix11 opened this issue Jan 2, 2021 · 6 comments
Open

Example module.xml #7

asterix11 opened this issue Jan 2, 2021 · 6 comments

Comments

@asterix11
Copy link

asterix11 commented Jan 2, 2021

Hi! Are you able to provide an example module.xml file? Currently I'm getting the following error:
16:08:35,049 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-2) Uncaught server error: java.lang.NoClassDefFoundError: javax/ws/rs/core/Response

My module.xml file:

<?xml version='1.0' encoding='UTF-8'?>

<module xmlns="urn:jboss:module:1.1" name="fr.benjaminfavre.provider">

    <resources>
        <resource-root path="provider.jar"/>
    </resources>

    <dependencies>
        <module name="org.keycloak.keycloak-core"/>
        <module name="org.keycloak.keycloak-server-spi"/>
        <module name="org.keycloak.keycloak-services"/>
        <module name="org.keycloak.keycloak-server-spi-private"/>
    </dependencies>
</module>
@asterix11
Copy link
Author

I tried to provide this dependency using another module.xml:

<?xml version='1.0' encoding='UTF-8'?>

<module xmlns="urn:jboss:module:1.1" name="javax.ws.rs-api">

    <resources>
        <resource-root path="provider.jar"/>
    </resources>

    <dependencies>
    </dependencies>
</module>

of course i provided the dependency to the "Apple Social Identity Provider" module using:

<module name="javax.ws.rs-api"/>

At first no errors occurred any more, but after trying to sign in nothing happens and the broker endpoint returned a 405.

@asterix11
Copy link
Author

I also included the "fr.benjaminfavre.provider" module in the standalone-ha.xml section specified in the README

@asterix11
Copy link
Author

Do you need more information to classify the issue?

@SalahAdDin
Copy link

@BenjaminFavre Are you still maintaining this?

@SalahAdDin
Copy link

I'm getting the a different problem with the same file:
15:18:14,920 FATAL [org.keycloak.services] (ServerService Thread Pool -- 63) Error during startup: java.lang.RuntimeException: org.jboss.modules.ModuleLoadException: Error loading module from /opt/jboss/keycloak/modules/fr/benjaminfavre/provider/main/module.xml.

@BenjaminFavre
Copy link
Owner

I work on the provider only when I need to upgrade my own Keycloak production server, sorry.
For now, the provider works fine for me and other people, and I’m not sure the bug comes from the provider, maybe it is related to the way you install it and I am no help for the matter.
I never had to modify module.xml, I just drop the jar in the deployments folder and it works.
If you find the cause of your problem and it appears to be solvable by a fix in the provider code, please post a pull request and I will gratefully merge it.
Check your Keycloak version too, current provider release works with Keycloak 11.0.2

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

No branches or pull requests

3 participants