3 Replies Latest reply on Jun 25, 2014 5:34 AM by rjozwik

    Referencing PicketLink modules through jboss-deployment-structure.xml

    rjozwik Newbie

      Hi,

       

      as per http://picketlink.org/gettingstarted/ guide I should be able to use PicketLink dependencies from Wildfly just by adding <module name="org.picketlink.core"/> to the META-INF/jboss-deployment-structure.xml. Unfortunately it doesn't work for me. I'm using picketlink-authentication-http-basic quickstart as a playground. Package prepared by maven contains picketlink jar in WEB-INF/lib and it runs smoothly, but when I remove this dependency (by removing WEB-INF/lib directory from war) and introduce it through jboss-deployment-structure.xml, deployment fails with following exceptions:

       

      org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DefaultLoginCredentials with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.picketlink.internal.AbstractIdentity.loginCredential
        at org.picketlink.internal.AbstractIdentity.loginCredential(AbstractIdentity.java:0)
      

       

      org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DefaultLoginCredentials with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject org.picketlink.authentication.internal.IdmAuthenticator.credentials
        at org.picketlink.authentication.internal.IdmAuthenticator.credentials(IdmAuthenticator.java:0)
      

       

      org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type PicketLinkExtension with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.picketlink.producer.IdentityManagementConfiguration.picketLinkExtension
        at org.picketlink.producer.IdentityManagementConfiguration.picketLinkExtension(IdentityManagementConfiguration.java:0)
      

       

      My current setup is Wildfly 8.1.0.Final with PicketLink 2.6.0.CR5, but I had similar problems (not sure about exact exceptions) with Wildfly 8.0.0.Final and PicketLink 2.5.2.Final. Am I doing something wrong or this is a bug?

       

      Regards,

      Radek