Hi everybody, I have the same problem. I try to add seam-beans.xml into WEB-INF no works. I try to add seam-config.xml into META-INF no works. I get the expception at
Exception sending context initialized event to listener instance of class org.jboss.solder.servlet.event.ServletEventBridgeListener: java.lang.NullPointerException
at org.picketlink.idm.impl.api.session.IdentitySessionImpl.<init>(IdentitySessionImpl.java:138) [picketlink-idm-core-1.5.0.Alpha02.jar:1.5.0.Alpha02]
at org.picketlink.idm.impl.api.IdentitySessionFactoryImpl.createIdentitySession(IdentitySessionFactoryImpl.java:114) [picketlink-idm-core-1.5.0.Alpha02.jar:1.5.0.Alpha02]
at org.eqaula.glue.security.InitializeDatabase.validateSecurity(InitializeDatabase.java:145) [classes:]
at org.eqaula.glue.security.InitializeDatabase.validate(InitializeDatabase.java:85) [classes:]
at org.eqaula.glue.security.InitializeDatabase$Proxy$_$$_WeldSubclass.validate(InitializeDatabase$Proxy$_$
I trace the source to IdentitySessionImpl.java:138, in the constructor
public IdentitySessionImpl(String realmName,IdentityStoreRepository repository,IdentityObjectTypeMapper typeMapper, APICacheProvider apiCacheProvider,
IdentityConfigurationContext configurationContext,Map<String, List<String>> realmOptions, Map<String,Object> sessionOptions) throws IdentityException
{
this.realmName = realmName;
IdentityStoreSession storeSession = repository.createIdentityStoreSession(sessionOptions);
I think that repository is null.
Please, an advise?
Picketlink not work within an EAR, try running my project placing seam-bean.xml much in the EJB jar, as in the EAR and WAR META-INF or WEB-INF, and always got the same exception.
Finally, I made my project into a WAR and runs smoothly.
I using JBoss AS 7.1, seam 3.1.0, picketlink 1.5.0.Alpha02
Thank's.