[keycloak-dev] JPA issue on AS 7.1.1.Final

Stian Thorgersen stian at redhat.com
Tue Jul 22 05:17:50 EDT 2014


Currently master doesn't work on AS 7.1.1.Final (works on EAP 6.2/6.3 and WildFly).

The problem is that Weld tries to load the peristence-unit even though jboss.as.jpa.managed is set to false. Weld is processing the WAR as picketlink-idm-api-2.6.0.CR5.jar and picketlink-idm-simple-schema-2.6.0.CR5.jar include beans.xml. This problem was fixed in 7.1.2.Final (EAP 6.2).

On 7.1.1.Final there seems to be no way to prevent CDI from triggering as all mechanism was added later (exclude-subsystem in jboss-deployment-structure.xml or bean-discovery-mode="none" in beans.xml).

Potential solutions I've found are:

* Get rid of beans.xml in PicketLink jars
* Remove support for AS 7.1.1.Final (isn't this about time any ways?!)


More information about the keycloak-dev mailing list