Skip to content

Commit

Permalink
KEYCLOAK-9709 Upgrade to Wildfly 16
Browse files Browse the repository at this point in the history
  • Loading branch information
vramik authored and hmlnarik committed Mar 15, 2019
1 parent 79c4d79 commit d7313d9
Show file tree
Hide file tree
Showing 16 changed files with 202 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
~ limitations under the License.
-->

<domain xmlns="urn:jboss:domain:9.0">
<domain xmlns="urn:jboss:domain:10.0">

<extensions>
<?EXTENSIONS?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
is also started by this host controller file. The other instance must be started
via host-slave.xml
-->
<host name="master" xmlns="urn:jboss:domain:9.0">
<host name="master" xmlns="urn:jboss:domain:10.0">
<extensions>
<?EXTENSIONS?>
</extensions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
~ limitations under the License.
-->

<host xmlns="urn:jboss:domain:9.0">
<host xmlns="urn:jboss:domain:10.0">
<extensions>
<?EXTENSIONS?>
</extensions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
via host-slave.xml
-->

<host name="master" xmlns="urn:jboss:domain:9.0">
<host name="master" xmlns="urn:jboss:domain:10.0">
<extensions>
<?EXTENSIONS?>
</extensions>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:9.0">
<server xmlns="urn:jboss:domain:10.0">

<extensions>
<?EXTENSIONS?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,47 @@ if (outcome == failed) of /profile=$clusteredProfile/subsystem=logging/logger=io
echo
end-if

# Migrate from 5.0.0 to 6.0.0
if (result == NON_XA) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode)
echo Removing NON_XA transaction mode from infinispan/hibernate/entity
/profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode)
echo
end-if

if (result == false) of /profile=$clusteredProfile/subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ExampleDS datasource
/profile=$clusteredProfile/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$clusteredProfile/subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to KeycloakDS datasource
/profile=$clusteredProfile/subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$clusteredProfile/subsystem=ejb3/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ejb3 subsystem
/profile=$clusteredProfile/subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$clusteredProfile/subsystem=transactions/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to transactions subsystem
/profile=$clusteredProfile/subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$clusteredProfile/subsystem=undertow/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to undertow subsystem
/profile=$clusteredProfile/subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$clusteredProfile/subsystem=webservices/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to webservices subsystem
/profile=$clusteredProfile/subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

echo *** End Migration of /profile=$clusteredProfile ***
Original file line number Diff line number Diff line change
Expand Up @@ -503,4 +503,47 @@ if (outcome == failed) of /profile=$standaloneProfile/subsystem=logging/logger=i
echo
end-if

# Migrate from 5.0.0 to 6.0.0
if (result == NON_XA) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode)
echo Removing NON_XA transaction mode from infinispan/hibernate/entity
/profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode)
echo
end-if

if (result == false) of /profile=$standaloneProfile/subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ExampleDS datasource
/profile=$standaloneProfile/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$standaloneProfile/subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to KeycloakDS datasource
/profile=$standaloneProfile/subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$standaloneProfile/subsystem=ejb3/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ejb3 subsystem
/profile=$standaloneProfile/subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$standaloneProfile/subsystem=transactions/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to transactions subsystem
/profile=$standaloneProfile/subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$standaloneProfile/subsystem=undertow/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to undertow subsystem
/profile=$standaloneProfile/subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /profile=$standaloneProfile/subsystem=webservices/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to webservices subsystem
/profile=$standaloneProfile/subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

echo *** End Migration of /profile=$standaloneProfile ***
Original file line number Diff line number Diff line change
Expand Up @@ -574,4 +574,47 @@ if (outcome == failed) of /subsystem=logging/logger=io.jaegertracing.Configurati
echo
end-if

# Migrate from 5.0.0 to 6.0.0
if (result == NON_XA) of /subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode)
echo Removing NON_XA transaction mode from infinispan/hibernate/entity
/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode)
echo
end-if

if (result == false) of /subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ExampleDS datasource
/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to KeycloakDS datasource
/subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=ejb3/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ejb3 subsystem
/subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=transactions/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to transactions subsystem
/subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=undertow/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to undertow subsystem
/subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=webservices/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to webservices subsystem
/subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

echo *** End Migration ***
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,47 @@ if (outcome == failed) of /subsystem=logging/logger=io.jaegertracing.Configurati
echo
end-if

# Migrate from 5.0.0 to 6.0.0
if (result == NON_XA) of /subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode)
echo Removing NON_XA transaction mode from infinispan/hibernate/entity
/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode)
echo
end-if

if (result == false) of /subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ExampleDS datasource
/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to KeycloakDS datasource
/subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=ejb3/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to ejb3 subsystem
/subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=transactions/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to transactions subsystem
/subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=undertow/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to undertow subsystem
/subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

if (result == false) of /subsystem=webservices/:read-attribute(name=statistics-enabled)
echo Adding statistics-enabled expression to webservices subsystem
/subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}})
echo
end-if

echo *** End Migration ***
2 changes: 1 addition & 1 deletion examples/demo-template/third-party-cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>org.jboss.spec.javax.faces</groupId>
<artifactId>jboss-jsf-api_2.3_spec</artifactId>
<version>2.3.5.SP1</version>
<version>2.3.9.SP01</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
30 changes: 15 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>28</version>
<version>29</version>
</parent>

<name>Keycloak</name>
Expand All @@ -41,32 +41,32 @@

<product.build-time>${timestamp}</product.build-time>

<wildfly.version>15.0.1.Final</wildfly.version>
<wildfly.version>16.0.0.Final</wildfly.version>
<wildfly.build-tools.version>1.2.10.Final</wildfly.build-tools.version>
<eap.version>7.2.0.GA-redhat-00005</eap.version>
<eap.build-tools.version>1.2.10.Final</eap.build-tools.version>
<wildfly.core.version>7.0.0.Final</wildfly.core.version>
<wildfly.core.version>8.0.0.Final</wildfly.core.version>

<jboss.as.version>7.2.0.Final</jboss.as.version>

<!-- Versions used mostly for Undertow server, aligned with WildFly -->
<jboss.aesh.version>0.66.19</jboss.aesh.version>
<aesh.version>1.8</aesh.version>
<aesh.readline.version>1.11</aesh.readline.version>
<aesh.version>1.11</aesh.version>
<aesh.readline.version>1.14</aesh.readline.version>
<apache.httpcomponents.version>4.5.4</apache.httpcomponents.version>
<apache.httpcomponents.httpcore.version>4.4.5</apache.httpcomponents.httpcore.version>
<apache.mime4j.version>0.6</apache.mime4j.version>
<jboss.dmr.version>1.5.0.Final</jboss.dmr.version>
<bouncycastle.version>1.60</bouncycastle.version>
<cxf.version>3.2.5-jbossorg-1</cxf.version>
<cxf.version>3.2.7</cxf.version>
<dom4j.version>2.1.1</dom4j.version>
<github.relaxng.version>2.3.1</github.relaxng.version>
<h2.version>1.4.193</h2.version>
<javax.persistence.version>2.2</javax.persistence.version>
<hibernate.core.version>5.3.7.Final</hibernate.core.version>
<hibernate.c3p0.version>5.3.7.Final</hibernate.c3p0.version>
<infinispan.version>9.4.3.Final</infinispan.version>
<jackson.version>2.9.5</jackson.version>
<hibernate.core.version>5.3.9.Final</hibernate.core.version>
<hibernate.c3p0.version>5.3.9.Final</hibernate.c3p0.version>
<infinispan.version>9.4.8.Final</infinispan.version>
<jackson.version>2.9.8</jackson.version>
<javax.mail.version>1.6.2</javax.mail.version>
<jboss.logging.version>3.3.2.Final</jboss.logging.version>
<jboss.logging.tools.version>2.1.0.Final</jboss.logging.tools.version>
Expand All @@ -76,17 +76,17 @@
<jboss.spec.javax.xml.bind.jboss-jaxb-api_2.3_spec.version>1.0.1.Final</jboss.spec.javax.xml.bind.jboss-jaxb-api_2.3_spec.version>
<jboss.spec.javax.servlet.jsp.jboss-jsp-api_2.3_spec.version>1.0.3.Final</jboss.spec.javax.servlet.jsp.jboss-jsp-api_2.3_spec.version>
<log4j.version>1.2.17</log4j.version>
<resteasy.version>3.6.2.Final</resteasy.version>
<resteasy.undertow.version>3.6.2.Final</resteasy.undertow.version>
<resteasy.version>3.6.3.Final</resteasy.version>
<resteasy.undertow.version>3.6.3.Final</resteasy.undertow.version>
<owasp.html.sanitizer.version>20180219.1</owasp.html.sanitizer.version>
<slf4j-api.version>1.7.22</slf4j-api.version>
<slf4j.version>1.7.22</slf4j.version>
<sun.istack.version>3.0.7</sun.istack.version>
<sun.jaxb.version>2.3.1</sun.jaxb.version>
<org.glassfish.jaxb.xsom.version>2.3.1</org.glassfish.jaxb.xsom.version>
<undertow.version>2.0.15.Final</undertow.version>
<elytron.version>1.7.0.Final</elytron.version>
<elytron.undertow-server.version>1.3.0.Final</elytron.undertow-server.version>
<undertow.version>2.0.19.Final</undertow.version>
<elytron.version>1.8.0.Final</elytron.version>
<elytron.undertow-server.version>1.4.0.Final</elytron.undertow-server.version>
<jetty81.version>8.1.17.v20150415</jetty81.version>
<jetty91.version>9.1.5.v20140505</jetty91.version>
<jetty92.version>9.2.4.v20141103</jetty92.version>
Expand Down
6 changes: 3 additions & 3 deletions testsuite/integration-arquillian/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
<app.server>undertow</app.server>

<!-- Wildfly deprecated versions -->
<wildfly.deprecated.version>14.0.1.Final</wildfly.deprecated.version>
<wildfly.deprecated.wildfly.core.version>6.0.2.Final</wildfly.deprecated.wildfly.core.version>
<wildfly.deprecated.arquillian.wildfly.container>2.1.0.Final</wildfly.deprecated.arquillian.wildfly.container>
<wildfly.deprecated.version>15.0.1.Final</wildfly.deprecated.version>
<wildfly.deprecated.wildfly.core.version>7.0.0.Final</wildfly.deprecated.wildfly.core.version>
<wildfly.deprecated.arquillian.wildfly.container>2.1.1.Final</wildfly.deprecated.arquillian.wildfly.container>

<!--component versions-->
<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@

import com.fasterxml.jackson.core.type.TypeReference;
import org.aesh.command.CommandDefinition;
import org.aesh.command.impl.activator.AeshCommandActivatorProvider;
import org.aesh.command.impl.activator.AeshOptionActivatorProvider;
import org.aesh.command.impl.completer.AeshCompleterInvocationProvider;
import org.aesh.command.impl.container.AeshCommandContainerBuilder;
import org.aesh.command.impl.converter.AeshConverterInvocationProvider;
import org.aesh.command.impl.invocation.AeshInvocationProviders;
import org.aesh.command.impl.parser.CommandLineParser;
import org.aesh.command.impl.validator.AeshValidatorInvocationProvider;
import org.aesh.command.invocation.InvocationProviders;
import org.aesh.command.option.Option;
import org.aesh.command.Command;
Expand All @@ -35,8 +30,8 @@
import org.aesh.command.container.CommandContainer;
import org.aesh.command.invocation.CommandInvocation;
import org.aesh.command.impl.registry.AeshCommandRegistryBuilder;
import org.aesh.command.parser.CommandLineParserException;
import org.aesh.command.registry.CommandRegistry;
import org.aesh.command.registry.CommandRegistryException;
import org.aesh.command.settings.Settings;
import org.aesh.command.settings.SettingsBuilder;
import org.aesh.readline.AeshContext;
Expand Down Expand Up @@ -274,7 +269,7 @@ private static String promptForInput() throws Exception {
return new String(passwordArray);
}

private static void printHelp(Command command) throws CommandNotFoundException, CommandLineParserException {
private static void printHelp(Command command) throws CommandNotFoundException, CommandRegistryException {
CommandRegistry registry = new AeshCommandRegistryBuilder().command(command).create();
CommandContainer commandContainer = registry.getCommand(command.getClass().getAnnotation(CommandDefinition.class).name(), null);
String help = commandContainer.printHelp(null);
Expand Down
Loading

0 comments on commit d7313d9

Please sign in to comment.