KEYCLOAK-2223 Upgrade to WildFly 10.0.0.CR4

This commit is contained in:
Marko Strukelj 2015-09-24 14:22:17 +02:00 committed by Stian Thorgersen
parent 38b9d05cd7
commit 32af1bd3a5
15 changed files with 49 additions and 97 deletions

View file

@ -1,7 +1,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan" xmlns:xalan="http://xml.apache.org/xalan"
xmlns:j="urn:jboss:domain:3.0" xmlns:j="urn:jboss:domain:4.0"
xmlns:ds="urn:jboss:domain:datasources:3.0" xmlns:ds="urn:jboss:domain:datasources:4.0"
xmlns:k="urn:jboss:domain:keycloak:1.1" xmlns:k="urn:jboss:domain:keycloak:1.1"
xmlns:sec="urn:jboss:domain:security:1.2" xmlns:sec="urn:jboss:domain:security:1.2"
version="2.0" version="2.0"
@ -25,7 +25,7 @@
<xsl:template match="//ds:datasources"> <xsl:template match="//ds:datasources">
<xsl:copy> <xsl:copy>
<xsl:apply-templates select="node()[name(.)='datasource']"/> <xsl:apply-templates select="node()[name(.)='datasource']"/>
<datasource jndi-name="java:jboss/datasources/KeycloakDS" pool-name="KeycloakDS" enabled="true" use-java-context="true"> <datasource jndi-name="java:jboss/datasources/KeycloakDS" pool-name="KeycloakDS" use-java-context="true">
<connection-url>jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE</connection-url> <connection-url>jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE</connection-url>
<driver>h2</driver> <driver>h2</driver>
<security> <security>

View file

@ -4,7 +4,6 @@
<subsystems name="default"> <subsystems name="default">
<!-- Each subsystem to be included relative to the src/main/resources directory --> <!-- Each subsystem to be included relative to the src/main/resources directory -->
<subsystem>logging.xml</subsystem> <subsystem>logging.xml</subsystem>
<subsystem>batch.xml</subsystem>
<subsystem>bean-validation.xml</subsystem> <subsystem>bean-validation.xml</subsystem>
<subsystem>keycloak-datasources.xml</subsystem> <subsystem>keycloak-datasources.xml</subsystem>
<subsystem>ee.xml</subsystem> <subsystem>ee.xml</subsystem>
@ -19,23 +18,17 @@
<subsystem>jsf.xml</subsystem> <subsystem>jsf.xml</subsystem>
<subsystem>mail.xml</subsystem> <subsystem>mail.xml</subsystem>
<subsystem>naming.xml</subsystem> <subsystem>naming.xml</subsystem>
<subsystem>pojo.xml</subsystem>
<subsystem>remoting.xml</subsystem> <subsystem>remoting.xml</subsystem>
<subsystem>resource-adapters.xml</subsystem>
<subsystem>request-controller.xml</subsystem> <subsystem>request-controller.xml</subsystem>
<subsystem>sar.xml</subsystem>
<subsystem>security.xml</subsystem> <subsystem>security.xml</subsystem>
<subsystem>security-manager.xml</subsystem> <subsystem>security-manager.xml</subsystem>
<subsystem>transactions.xml</subsystem> <subsystem>transactions.xml</subsystem>
<subsystem>undertow.xml</subsystem> <subsystem>undertow.xml</subsystem>
<subsystem>webservices.xml</subsystem>
<subsystem>weld.xml</subsystem>
<subsystem>keycloak-server.xml</subsystem> <subsystem>keycloak-server.xml</subsystem>
</subsystems> </subsystems>
<subsystems name="ha"> <subsystems name="ha">
<!-- Each subsystem to be included relative to the src/main/resources directory --> <!-- Each subsystem to be included relative to the src/main/resources directory -->
<subsystem>logging.xml</subsystem> <subsystem>logging.xml</subsystem>
<subsystem>batch.xml</subsystem>
<subsystem>bean-validation.xml</subsystem> <subsystem>bean-validation.xml</subsystem>
<subsystem>keycloak-datasources.xml</subsystem> <subsystem>keycloak-datasources.xml</subsystem>
<subsystem>ee.xml</subsystem> <subsystem>ee.xml</subsystem>
@ -52,23 +45,17 @@
<subsystem>mail.xml</subsystem> <subsystem>mail.xml</subsystem>
<subsystem>mod_cluster.xml</subsystem> <subsystem>mod_cluster.xml</subsystem>
<subsystem>naming.xml</subsystem> <subsystem>naming.xml</subsystem>
<subsystem>pojo.xml</subsystem>
<subsystem>remoting.xml</subsystem> <subsystem>remoting.xml</subsystem>
<subsystem>resource-adapters.xml</subsystem>
<subsystem>request-controller.xml</subsystem> <subsystem>request-controller.xml</subsystem>
<subsystem>sar.xml</subsystem>
<subsystem>security.xml</subsystem> <subsystem>security.xml</subsystem>
<subsystem>security-manager.xml</subsystem> <subsystem>security-manager.xml</subsystem>
<subsystem>transactions.xml</subsystem> <subsystem>transactions.xml</subsystem>
<subsystem supplement="ha">undertow.xml</subsystem> <subsystem supplement="ha">undertow.xml</subsystem>
<subsystem>webservices.xml</subsystem>
<subsystem>weld.xml</subsystem>
<subsystem>keycloak-server.xml</subsystem> <subsystem>keycloak-server.xml</subsystem>
</subsystems> </subsystems>
<subsystems name="full"> <subsystems name="full">
<!-- Each subsystem to be included relative to the src/main/resources directory --> <!-- Each subsystem to be included relative to the src/main/resources directory -->
<subsystem>logging.xml</subsystem> <subsystem>logging.xml</subsystem>
<subsystem>batch.xml</subsystem>
<subsystem>bean-validation.xml</subsystem> <subsystem>bean-validation.xml</subsystem>
<subsystem>keycloak-datasources.xml</subsystem> <subsystem>keycloak-datasources.xml</subsystem>
<subsystem supplement="full">ee.xml</subsystem> <subsystem supplement="full">ee.xml</subsystem>
@ -86,23 +73,17 @@
<subsystem>mail.xml</subsystem> <subsystem>mail.xml</subsystem>
<subsystem>messaging.xml</subsystem> <subsystem>messaging.xml</subsystem>
<subsystem>naming.xml</subsystem> <subsystem>naming.xml</subsystem>
<subsystem>pojo.xml</subsystem>
<subsystem>remoting.xml</subsystem> <subsystem>remoting.xml</subsystem>
<subsystem>resource-adapters.xml</subsystem>
<subsystem>request-controller.xml</subsystem> <subsystem>request-controller.xml</subsystem>
<subsystem>sar.xml</subsystem>
<subsystem>security.xml</subsystem> <subsystem>security.xml</subsystem>
<subsystem>security-manager.xml</subsystem> <subsystem>security-manager.xml</subsystem>
<subsystem>transactions.xml</subsystem> <subsystem>transactions.xml</subsystem>
<subsystem>undertow.xml</subsystem> <subsystem>undertow.xml</subsystem>
<subsystem>webservices.xml</subsystem>
<subsystem>weld.xml</subsystem>
<subsystem>keycloak-server.xml</subsystem> <subsystem>keycloak-server.xml</subsystem>
</subsystems> </subsystems>
<subsystems name="full-ha"> <subsystems name="full-ha">
<!-- Each subsystem to be included relative to the src/main/resources directory --> <!-- Each subsystem to be included relative to the src/main/resources directory -->
<subsystem>logging.xml</subsystem> <subsystem>logging.xml</subsystem>
<subsystem>batch.xml</subsystem>
<subsystem>bean-validation.xml</subsystem> <subsystem>bean-validation.xml</subsystem>
<subsystem>keycloak-datasources.xml</subsystem> <subsystem>keycloak-datasources.xml</subsystem>
<subsystem supplement="full">ee.xml</subsystem> <subsystem supplement="full">ee.xml</subsystem>
@ -122,17 +103,13 @@
<subsystem supplement="ha">messaging.xml</subsystem> <subsystem supplement="ha">messaging.xml</subsystem>
<subsystem>mod_cluster.xml</subsystem> <subsystem>mod_cluster.xml</subsystem>
<subsystem>naming.xml</subsystem> <subsystem>naming.xml</subsystem>
<subsystem>pojo.xml</subsystem>
<subsystem>remoting.xml</subsystem> <subsystem>remoting.xml</subsystem>
<subsystem>resource-adapters.xml</subsystem> <subsystem>resource-adapters.xml</subsystem>
<subsystem>request-controller.xml</subsystem> <subsystem>request-controller.xml</subsystem>
<subsystem>sar.xml</subsystem>
<subsystem>security.xml</subsystem> <subsystem>security.xml</subsystem>
<subsystem>security-manager.xml</subsystem> <subsystem>security-manager.xml</subsystem>
<subsystem>transactions.xml</subsystem> <subsystem>transactions.xml</subsystem>
<subsystem supplement="ha">undertow.xml</subsystem> <subsystem supplement="ha">undertow.xml</subsystem>
<subsystem>webservices.xml</subsystem>
<subsystem>weld.xml</subsystem>
<subsystem>keycloak-server.xml</subsystem> <subsystem>keycloak-server.xml</subsystem>
</subsystems> </subsystems>
</config> </config>

View file

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<domain xmlns="urn:jboss:domain:3.0"> <domain xmlns="urn:jboss:domain:4.0">
<extensions> <extensions>
<?EXTENSIONS?> <?EXTENSIONS?>
@ -24,18 +24,18 @@
</management> </management>
<profiles> <profiles>
<profile name="default"> <profile name="default">
<?SUBSYSTEMS socket-binding-group="standard-sockets"?> <?SUBSYSTEMS socket-binding-group="standard-sockets"?>
</profile> </profile>
<profile name="ha"> <profile name="ha">
<?SUBSYSTEMS socket-binding-group="ha-sockets"?> <?SUBSYSTEMS socket-binding-group="ha-sockets"?>
</profile> </profile>
<profile name="full"> <profile name="full">
<?SUBSYSTEMS socket-binding-group="full-sockets"?> <?SUBSYSTEMS socket-binding-group="full-sockets"?>
</profile> </profile>
<profile name="full-ha"> <profile name="full-ha">
<?SUBSYSTEMS socket-binding-group="full-ha-sockets"?> <?SUBSYSTEMS socket-binding-group="full-ha-sockets"?>
</profile> </profile>
</profiles> </profiles>
<!-- <!--
@ -48,7 +48,7 @@
<interfaces> <interfaces>
<interface name="management"/> <interface name="management"/>
<interface name="public"/> <interface name="public"/>
<interface name="unsecure"/> <?INTERFACES?>
</interfaces> </interfaces>
<socket-binding-groups> <socket-binding-groups>

View file

@ -3,7 +3,6 @@
<config> <config>
<subsystems> <subsystems>
<subsystem>logging.xml</subsystem> <subsystem>logging.xml</subsystem>
<subsystem>batch.xml</subsystem>
<subsystem>bean-validation.xml</subsystem> <subsystem>bean-validation.xml</subsystem>
<subsystem>keycloak-datasources.xml</subsystem> <subsystem>keycloak-datasources.xml</subsystem>
<subsystem>ee.xml</subsystem> <subsystem>ee.xml</subsystem>
@ -20,17 +19,12 @@
<subsystem>mail.xml</subsystem> <subsystem>mail.xml</subsystem>
<subsystem>mod_cluster.xml</subsystem> <subsystem>mod_cluster.xml</subsystem>
<subsystem>naming.xml</subsystem> <subsystem>naming.xml</subsystem>
<subsystem>pojo.xml</subsystem>
<subsystem>remoting.xml</subsystem> <subsystem>remoting.xml</subsystem>
<subsystem>resource-adapters.xml</subsystem>
<subsystem>request-controller.xml</subsystem> <subsystem>request-controller.xml</subsystem>
<subsystem>sar.xml</subsystem>
<subsystem>security-manager.xml</subsystem> <subsystem>security-manager.xml</subsystem>
<subsystem>security.xml</subsystem> <subsystem>security.xml</subsystem>
<subsystem>transactions.xml</subsystem> <subsystem>transactions.xml</subsystem>
<subsystem supplement="ha">undertow.xml</subsystem> <subsystem supplement="ha">undertow.xml</subsystem>
<subsystem>webservices.xml</subsystem>
<subsystem>weld.xml</subsystem>
<subsystem>keycloak-server.xml</subsystem> <subsystem>keycloak-server.xml</subsystem>
</subsystems> </subsystems>
</config> </config>

View file

@ -3,7 +3,6 @@
<config> <config>
<subsystems> <subsystems>
<subsystem>logging.xml</subsystem> <subsystem>logging.xml</subsystem>
<subsystem>batch.xml</subsystem>
<subsystem>bean-validation.xml</subsystem> <subsystem>bean-validation.xml</subsystem>
<subsystem>keycloak-datasources.xml</subsystem> <subsystem>keycloak-datasources.xml</subsystem>
<subsystem>ee.xml</subsystem> <subsystem>ee.xml</subsystem>
@ -18,17 +17,12 @@
<subsystem>jsf.xml</subsystem> <subsystem>jsf.xml</subsystem>
<subsystem>mail.xml</subsystem> <subsystem>mail.xml</subsystem>
<subsystem>naming.xml</subsystem> <subsystem>naming.xml</subsystem>
<subsystem>pojo.xml</subsystem>
<subsystem>remoting.xml</subsystem> <subsystem>remoting.xml</subsystem>
<subsystem>resource-adapters.xml</subsystem>
<subsystem>request-controller.xml</subsystem> <subsystem>request-controller.xml</subsystem>
<subsystem>sar.xml</subsystem>
<subsystem>security-manager.xml</subsystem> <subsystem>security-manager.xml</subsystem>
<subsystem>security.xml</subsystem> <subsystem>security.xml</subsystem>
<subsystem>transactions.xml</subsystem> <subsystem>transactions.xml</subsystem>
<subsystem>undertow.xml</subsystem> <subsystem>undertow.xml</subsystem>
<subsystem>webservices.xml</subsystem>
<subsystem>weld.xml</subsystem>
<subsystem>keycloak-server.xml</subsystem> <subsystem>keycloak-server.xml</subsystem>
</subsystems> </subsystems>
</config> </config>

View file

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:3.0"> <server xmlns="urn:jboss:domain:4.0">
<extensions> <extensions>
<?EXTENSIONS?> <?EXTENSIONS?>
@ -29,15 +29,15 @@
</security-realms> </security-realms>
<audit-log> <audit-log>
<formatters> <formatters>
<json-formatter name="json-formatter"/> <json-formatter name="json-formatter"/>
</formatters> </formatters>
<handlers> <handlers>
<file-handler name="file" formatter="json-formatter" relative-to="jboss.server.data.dir" path="audit-log.log"/> <file-handler name="file" formatter="json-formatter" relative-to="jboss.server.data.dir" path="audit-log.log"/>
</handlers> </handlers>
<logger log-boot="true" log-read-only="false" enabled="false"> <logger log-boot="true" log-read-only="false" enabled="false">
<handlers> <handlers>
<handler name="file"/> <handler name="file"/>
</handlers> </handlers>
</logger> </logger>
</audit-log> </audit-log>
<management-interfaces> <management-interfaces>
@ -70,11 +70,7 @@
<inet-address value="${jboss.bind.address:127.0.0.1}"/> <inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface> </interface>
<!-- TODO - only show this if the jacorb subsystem is added --> <!-- TODO - only show this if the jacorb subsystem is added -->
<interface name="unsecure"> <?INTERFACES?>
<!-- Used for IIOP sockets in the standard configuration.
To secure JacORB you need to setup SSL -->
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces> </interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
@ -84,4 +80,4 @@
<?SOCKET-BINDINGS?> <?SOCKET-BINDINGS?>
</socket-binding-group> </socket-binding-group>
</server> </server>

View file

@ -15,7 +15,7 @@
<modules> <modules>
<module>wf9-server-overlay</module> <module>wildfly</module>
<module>eap6</module> <module>eap6</module>
</modules> </modules>
</project> </project>

View file

@ -1,10 +0,0 @@
/subsystem=datasources/data-source=KeycloakDS/:add(connection-url="jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE",driver-name=h2,jndi-name=java:jboss/datasources/KeycloakDS,password=sa,user-name=sa,use-java-context=true)
/subsystem=infinispan/cache-container=keycloak:add(jndi-name="infinispan/Keycloak")
/subsystem=infinispan/cache-container=keycloak/transport=TRANSPORT:add(lock-timeout=60000)
/subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms:add(mode="SYNC")
/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users:add(mode="SYNC")
/subsystem=infinispan/cache-container=keycloak/distributed-cache=sessions:add(mode="SYNC",owners="1")
/subsystem=infinispan/cache-container=keycloak/distributed-cache=loginFailures:add(mode="SYNC",owners="1")
/extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem)
/subsystem=keycloak-server:add(web-context=auth)
:shutdown(restart=true)

View file

@ -48,9 +48,9 @@
<dom4j.version>1.6.1</dom4j.version> <dom4j.version>1.6.1</dom4j.version>
<xml-apis.version>1.4.01</xml-apis.version> <xml-apis.version>1.4.01</xml-apis.version>
<slf4j.version>1.7.7</slf4j.version> <slf4j.version>1.7.7</slf4j.version>
<wildfly.version>9.0.2.Final</wildfly.version> <wildfly.version>10.0.0.CR4</wildfly.version>
<wildfly.core.version>1.0.2.Final</wildfly.core.version> <wildfly.core.version>2.0.1.Final</wildfly.core.version>
<wildfly.build-tools.version>1.0.0.Final</wildfly.build-tools.version> <wildfly.build-tools.version>1.1.0.Final</wildfly.build-tools.version>
<!-- this is EAP 6.4 alpha, publicly available --> <!-- this is EAP 6.4 alpha, publicly available -->
<jboss.version>7.5.0.Final-redhat-15</jboss.version> <jboss.version>7.5.0.Final-redhat-15</jboss.version>

View file

@ -184,11 +184,6 @@
<groupId>org.seleniumhq.selenium</groupId> <groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId> <artifactId>selenium-chrome-driver</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-undertow</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-testsuite-integration</artifactId> <artifactId>keycloak-testsuite-integration</artifactId>

View file

@ -33,6 +33,18 @@
<artifactId>tomcat-embed-core</artifactId> <artifactId>tomcat-embed-core</artifactId>
<version>7.0.59</version> <version>7.0.59</version>
</dependency> </dependency>
<!-- Undertow's fork of Jasper JSP parser -->
<dependency>
<groupId>io.undertow.jastow</groupId>
<artifactId>jastow</artifactId>
<version>2.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.servlet.jsp</groupId>
<artifactId>jboss-jsp-api_2.3_spec</artifactId>
<version>1.0.1.Final</version>
</dependency>
<dependency> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-dependencies-server-all</artifactId> <artifactId>keycloak-dependencies-server-all</artifactId>
@ -204,12 +216,6 @@
<groupId>org.seleniumhq.selenium</groupId> <groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId> <artifactId>selenium-chrome-driver</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-undertow</artifactId>
<version>${wildfly.version}</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-testsuite-integration</artifactId> <artifactId>keycloak-testsuite-integration</artifactId>

View file

@ -188,12 +188,6 @@
<groupId>org.seleniumhq.selenium</groupId> <groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId> <artifactId>selenium-chrome-driver</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-undertow</artifactId>
<version>${wildfly.version}</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-testsuite-integration</artifactId> <artifactId>keycloak-testsuite-integration</artifactId>
@ -222,7 +216,13 @@
<version>${tomcat.version}</version> <version>${tomcat.version}</version>
</dependency> </dependency>
</dependencies> <!-- Undertow's fork of Jasper JSP parser -->
<dependency>
<groupId>io.undertow.jastow</groupId>
<artifactId>jastow</artifactId>
<version>2.0.0.Final</version>
</dependency>
</dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>