[keycloak-dev] Issue with multi tenancy

Satyajit Das satyajit.das at spire2grow.com
Mon Aug 31 00:16:37 EDT 2015


HI Team,

Did any one get a chance to look at the issue.

Kindly look into it.

Looking forward to your positive response.

Regards,
Satya

On Fri, Aug 28, 2015 at 8:31 PM, Satyajit Das <satyajit.das at spire2grow.com>
wrote:

> Hi Team,
>>
>> I have configured PathBasedKeycloakConfigResolver in my package:
>> com.demo.util.
>>
>> The context param has been set on web.xml
>> <context-param>
>>         <param-name>keycloak.config.resolver</param-name>
>>
>> <param-value>org.keycloak.example.PathBasedKeycloakConfigResolver</param-value>
>>     </context-param>
>>
>> I deployed the application on Tomcat. I have registered the context.xml
>> in meta-inf with the required adapter.
>>
>> Tomcat lib directory has all the required keycloak jar files.
>>
>> But PathBasedKeycloakConfigResolver never gets called on any request to
>> the url.
>> One strange thing i find that in eclipse if I remove the maven dependency
>> from deployment assembly(right click on project-> properties->deployment
>> assembly) it works But if i put it back it fails. Maven dependency is a
>> must.
>>
>
> After debugging   String configResolverClass =
> context.getServletContext().getInitParameter("keycloak.config.resolver");
> of AbstractKeycloakAuthenticatorValve class
>
> Got the following error: when PathBasedKeycloakConfigResolver  is being
> instantiated.
>
> java.lang.ClassCastException:
> org.keycloak.example.PathBasedKeycloakConfigResolver cannot be cast to
> org.keycloak.adapters.KeycloakConfigResolver
>
> But PathBasedKeycloakConfigResolver implements
> org.keycloak.adapters.KeycloakConfigResolver.
>
>
> Regards,
> Satya.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150831/5e698120/attachment-0001.html 


More information about the keycloak-dev mailing list