Hi all,
I am using the latest keycloak server 21.1.1 and i am implementing a custom provider for communicating with an external database.
I have a factory for creating an DAO implementation from an external library. Inside the library is tested that the dao is successfully created. The dao implementation has injected a mysqldatasource.
I successfully find the custom provider and is successfully configured with the properties regarding the database.
I have confirmed that the datasource has been successfully created by the properties, but once i try to create the DAO via factory i get the following error “Uncaught server error: java.lang.NoClassDefFoundError:”.
I use the following dependencies:
org.keycloak:keycloak-server-spi:21.1.1
org.keycloak:keycloak-core:21.1.1
org.keycloak:keycloak-model-legacy:21.1.1
org.keycloak:keycloak-model-legacy-private:21.1.1
The issue is that the code for the external library is not included into the jar. What is the best approach to include the implementation into the jar?