Pedro –
That solved my class loading issue. However, I now find that my JPAIdentityStore is not being used. Instead, a FileIdentityStore is being created, even though I am observing an IdentityConfigurationEvent. My initializer looks like this...
public void identityConfigurationEvent(@Observes IdentityConfigurationEvent event) {
|
if (logger.isDebugEnabled()) {
|
logger.debug("identityConfigurationEvent(IdentityConfigurationEvent) - start"); //$NON-NLS-1$
|
}
|
|
if (logger.isInfoEnabled()) {
|
logger.info(
|
"identityConfigurationEvent(IdentityConfigurationEvent) - Identity configuration event observed. Creating PicketLink identity configuration..."); //$NON-NLS-1$
|
}
|
|
ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
InputStream inStream = cl.getResourceAsStream("/META-INF/picketlink.xml");
|
XMLConfigurationProvider configProvider = new XMLConfigurationProvider();
|
|
IdentityConfigurationBuilder builder = configProvider.readIDMConfiguration(inStream);
|
builder.named("Holocron_IDM").stores().jpa()
|
.addContextInitializer(new PicketLinkContextInitializer(this.entityManager));
|
|
IdentityConfiguration config = builder.build();
|
this.identityConfiguration = config;
|
|
if (logger.isDebugEnabled()) {
|
logger.debug("identityConfigurationEvent(IdentityConfigurationEvent) - end"); //$NON-NLS-1$
|
}
|
}
|
|
@Produces
|
public IdentityConfiguration getIdentityConfiguration() {
|
return identityConfiguration;
|
}
|
|
This method DOES get called. However, the IdentityConfiguration is not being used. The logs indicate that it is using a FileIdentityStore, and I don't see any account/partition objects being created in my SQL database as I would expect. Thoughts?
|