I am having some issues trying to install keycloak-war-dist-all-1.0-beta-3 on Wildfly 8.0 and WildFly 8.1. I am able to install keycloak-war-dist-all-1.0-beta-1 to both Wildfly 8.0 and WildFly 8.1 using the same installation process.
I have tested the installation on two different machines:
- Windows 8 with Java JDK 1.8.0 (Also tested with JDK 1.7.51)
- Windows 7 with Java JDK 1.8.0
The steps I take to do the installation are as follows:
1) Unzip wildfly-8.1.0.Final.zip to C:\TEMP.
2) Unzip keycloak-war-dist-all-1.0-beta-3.zip to C:\TEMP.
3) Copy the configuration and deployments folders from the C:\TEMP\keycloak-war-dist-all-1.0-beta-3 to C:\TEMP\wildfly-8.1.0.Final\standalone.
4) On my Windows 7 machine I need to change the WildFly http port since I have Oracle XE installed that occupies port 8080.
5) Start the WildFly 8.1 by running C:\TEMP\wildfly-8.1.0.Final\bin\standalone.bat.
The content of the C:\TEMP\wildfly-8.1.0.Final\standalone\deployments\auth-server.war.failed is as follows:
"{\"JBAS014671: Failed services\" => {\"jboss.persistenceunit.\\\"auth-server.war#jpa-keycloak-identity-store\\\"\" => \"org.jboss.msc.service.StartException in service jboss.persistenceunit.\\\"auth-server.war#jpa-keycloak-identity-store\\\": javax.persistence.PersistenceException: [PersistenceUnit: jpa-keycloak-identity-store] Unable to build Hibernate SessionFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: jpa-keycloak-identity-store] Unable to build Hibernate SessionFactory
Caused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: org.keycloak.models.jpa.entities.ApplicationEntity.roles[org.keycloak.models.jpa.entities.ApplicationRoleEntity]\"}}"
I am not sure if I am doing anything wrong or whether there is an issue with the keycloak-war-dist-all-1.0-beta-3.zip distribution.