[keycloak-user] NoClassDefFoundError: org/keycloak/KeycloakPrincipal

Luis Rodríguez Fernández uo67113 at gmail.com
Tue May 15 07:58:15 EDT 2018


Hi Valsaraj,

Below works for me on apache-tomcat 9.0.5 with the servlet filter adapter:

keycloak-tomcat-adapter-spi-3.4.3.Fiinal.jar
keycloak-servlet-adapter-spi-3.4.3.Final.jar
keycloak-saml-tomcat8-adapter-3.4.3.Final.jar
keycloak-saml-tomcat-adapter-core-3.4.3.Final.jar
keycloak-saml-core-public-3.4.3.Final.jar
keycloak-saml-core-3.4.3.Final.jar
keycloak-saml-adapter-core-3.4.3.Final.jar
keycloak-saml-adapter-api-public-3.4.3.Final.jar
keycloak-common-3.4.3.Final.jar
keycloak-adapter-spi-3.4.3.Final.jar

Yes, most probably you will need core.jar for your adapter too

Hope it helps,

Luis









2018-05-15 13:14 GMT+02:00 valsaraj pv <valsarajpv at gmail.com>:

> Hi,
>
> I am getting following exception while deploying ear in WildFly 10. Apapter
> is installed so no jars included in ear & no dependencies set.
>
> > Caused by: java.lang.NoClassDefFoundError:
> org/keycloak/KeycloakPrincipal
> >
> >     Caused by: java.lang.ClassNotFoundException:
> >> org.keycloak.KeycloakPrincipal from [Module
> >> \"deployment.app.ear.appEJB.jar:main\" from Service Module Loader]"},
> >
> >         "WFLYCTL0412: Required services that are not installed:" => [
> >
> >             "jboss.undertow.deployment.default-server.default-host./
> App",
> >
> >
> >> "org.camunda.bpm.platform.process-application-module.\"
> deployment.app.ear.appWEB.war:main\".NO_VIEW"
> >
> >         ]
> >
> >
> >
> Please let me know if U need to include core jar or set the subsystem
> dependencies. I saw in one comment that there is no need to set them
> explicitly.
> Please advise.
>
> Thanks,
> Valsaraj Viswanathan
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>



-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


More information about the keycloak-user mailing list