You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Thomas Lustig <tm...@gmail.com> on 2016/10/28 14:59:21 UTC

can not use jackrabbit and usermanagement via JCA

Dear jackrabbit users,


I am Using jackrabbit 2.12.4 as a JCA (via RAR package) and beside the
default JCR operations i would like to use the usermanager to
add/remove/edit Users:


Session s = repo.login(...);
UserManager umngr = ((JackrabbitSession) s).getUserManager();

*This throws the following exception *
java.lang.ClassCastException: org.apache.jackrabbit.jca.JCASessionHandle
cannot be cast to org.apache.jackrabbit.api.JackrabbitSession

Is Usermanagement only possible when embedded? using jackrabbit
Could I use or build any workaround?

Best regards

Thomas