Scenario #2
A WAR is contained in an EAR. EAR contains META-INF/jboss-deployment-structure.xml. An EAR is deployed. META-INF/jboss-deployment-structure.xml contains the following:
<dependencies>
|
<!-- You must configure the PicketLink dependency to your deployment. The dependency above is
|
a reference to a static module from WildFly modules directory. -->
|
<module name="org.picketlink.core.api" export="true" meta-inf="import" annotations="true" />
|
<module name="org.picketlink.idm.api" export="true" meta-inf="import" annotations="true" />
|
<module name="org.picketlink.core" export="true" meta-inf="import" annotations="true" />
|
<module name="org.picketlink.idm" export="true" meta-inf="import" annotations="true" />
|
<module name="org.picketlink.common" export="true" meta-inf="import" annotations="true" />
|
</dependencies>
|
The above exception occurs if export="true" is not specified. If export="true" is specified, the deployment does not produce an exception but security interceptors never kick in. Scenario #2 DOES NOT WORK
|