Hi Pedro,
Thanks for getting back to me on this. I have been trying different things. I tried your suggestion and got errors complaining about not finding the entities. Here is some of the errors I get
Caused by: org.picketlink.idm.config.SecurityConfigurationException: Invalid mapping for type [class com.mycompany.picketlinkplayground.model.CompanyRealm]. No entity found with a field annotated with interface org.picketlink.idm.jpa.annotations.Identifier. at org.picketlink.idm.jpa.internal.JPAIdentityStore.checkIfAnnotationIsDefined(JPAIdentityStore.java:1975) [picketlink-2.6.0.Final.jar:] at org.picketlink.idm.jpa.internal.JPAIdentityStore.validateTypeMapping(JPAIdentityStore.java:1941) [picketlink-2.6.0.Final.jar:] at org.picketlink.idm.jpa.internal.JPAIdentityStore.validateConfiguration(JPAIdentityStore.java:1894) [picketlink-2.6.0.Final.jar:] at org.picketlink.idm.jpa.internal.JPAIdentityStore.setup(JPAIdentityStore.java:149) [picketlink-2.6.0.Final.jar:] at org.picketlink.idm.jpa.internal.JPAIdentityStore.setup(JPAIdentityStore.java:119) [picketlink-2.6.0.Final.jar:] at org.picketlink.idm.internal.DefaultPartitionManager.createIdentityStore(DefaultPartitionManager.java:823) [picketlink-2.6.0.Final.jar:]
Now to answer your question if I was able to get the application running. Yes, I have managed to get running. After too many trials and errors and comparing to the example code available in the quickstarts, I noticed that if I removed the supportAllFeatures() the application starts running fine. So correct me if I am wrong, if I use the supportAllFeatures() and I do not have mappings for all features it tries falling back to the basic model. This is my guess based on the behavior I have been noticing.
Please, let me know your thoughts. Thanks, Tamer
|