PIcketlink as module throws CDI error
claudio4j Jun 22, 2014 12:01 PMHi, using PL 2.5.2 as module throws the error
12:46:11,636 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."picketlink-authentication-jsf.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."picketlink-authentication-jsf.war".WeldStartService: Failed to start service Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IdentityStoreAutoConfiguration with qualifiers @Default at injection point [BackedAnnotatedField] @Inject private org.picketlink.producer.IdentityManagerProducer.autoConfig at org.picketlink.producer.IdentityManagerProducer.autoConfig(IdentityManagerProducer.java:0)
It uses the picketlink-authentication-jsf quickstart (master), except I added the jboss-deployment-structure.xml and modified pom.xml to not package PL libraries.
pom.xml
<dependency> <groupId>org.picketlink</groupId> <artifactId>picketlink-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.picketlink</groupId> <artifactId>picketlink-impl</artifactId> <scope>provided</scope> </dependency>
WEB-INF/jboss-deployment-structure.xml
<jboss-deployment-structure> <deployment> <dependencies> <module name="org.picketlink.core" annotations="true" /> <module name="org.picketlink.core.api" annotations="true" /> </dependencies> </deployment> </jboss-deployment-structure>
Deployed on wildfly 8.1.0.Final
Previously there is another error, related to the annotations attribute of jboss-deployment-structure.xml
ERROR [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015894: Module org.picketlink.core:main will not have it's annotations processed as no META-INF/jandex.idx file was found in the deployment. Please generate this file using the Jandex ant task. ERROR [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015894: Module org.picketlink.core.api:main will not have it's annotations processed as no META-INF/jandex.idx file was found in the deployment. Please generate this file using the Jandex ant task.
Used jandex to add the index file to META-INF, this ERROR go away but the first weld error remains.
Is it possible to use PL as module ?
Thanks
Claudio