Start with version 1.0.3 and a clean postgres database.
If you get an annoying error about grunt then cd into admin-ui and run bower install.
NOTE
When deploying to EAP you must use the as7
server and not the wildfly
ag-push.war. This is also means that you should not be executing the wildfly
scripts in the databases directory to create the datasources.
Deploy UPS 1.0.3:
- Start wildfly using:
./standalone.sh -c standalone-full.xml -b 0.0.0.0
- Create the datasource by executing:
~/work/wildfly/bundles/wildfly-8.2.0.Final/bin/jboss-cli.sh --file=postgresql-database-config-wildfly.cli
- Create the database schema:
cd migrator/target
unzip -d migrator unifiedpush-migrator-1.0.3-dist.zip
cd migrator
cp liquibase-postgresql-example.properties liquibase.properties and update the configuration file
./bin/ups-migrator --logLevel=debug update
- Deploy the auth-server:
cp servers/auth-server/target/auth-server.war ~/work/wildfly/bundles/wildfly-8.2.0.Final/standalone/deployments/
- Deploy UPS:
cp servers/ups-wildfly/target/ag-push.war ~/work/wildfly/bundles/wildfly-8.2.0.Final/standalone/deployments/
-
Register an application using the admin console
-
After registering an application and client device plus sending a notification. Take a dump of the database in this state: Postgres:
pg_dump unifiedpush > ups_1.0.3
MySql:
mysqldump -u root unifiedpush > ups_1.0.3_mysql
- Restore the 1.0.3 database Postgres:
postgres=# drop database unifiedpush
postgres=# create database unifiedpush
$ psql unifiedpush < ~/Downloads/ups_1_0_3
Mysql:
drop database unifiedpush
create database unifiedpush default character set = "UTF8" default collate = "utf8_general_ci";
mysql -u root unifiedpush < ups_1_0_3_mysql
- Create the database schema:
cd migrator/target
unzip -d migrator unifiedpush-migrator-1.0.3-dist.zip; cd migrator
cp liquibase-mysql-example.properties liquibase.properties and update the configuration file
./bin/ups-migrator --logLevel=debug update
Has Hibernate version 4.2.18.Final-redhat-2
compared to Wildfly 8.2 which has version hibernate-core-4.3.7.Final
Deploying auth-server.war produces the following warnings:
07:13:16,354 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "auth-server.war" (runtime-name: "auth-server.war")
07:13:17,307 WARN [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015960: Class Path entry lib/snakeyaml-1.13.jar in /content/auth-server.war/WEB-INF/lib/liquibase-core-3.3.5.jar does not point to a valid jar for a Class-Path reference.
07:13:17,363 INFO [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for keycloak-default
07:13:17,554 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS015867: Deployment "deployment.auth-server.war" is using a private module ("org.codehaus.jackson.jackson-core-asl:main") which may be changed or removed in future versions without notice.
07:13:17,554 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS015867: Deployment "deployment.auth-server.war" is using a private module ("org.codehaus.jackson.jackson-core-asl:main") which may be changed or removed in future versions without notice.
07:13:17,555 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS015867: Deployment "deployment.auth-server.war" is using a private module ("org.codehaus.jackson.jackson-mapper-asl:main") which may be changed or removed in future versions without notice.
07:13:17,555 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS015867: Deployment "deployment.auth-server.war" is using a private module ("org.codehaus.jackson.jackson-mapper-asl:main") which may be changed or removed in future versions without notice.
07:13:17,555 WARN [org.jboss.as.dependency.unsupported] (MSC service thread 1-10) JBAS015868: Deployment "deployment.auth-server.war" is using an unsupported module ("org.infinispan:main") which may be changed or removed in future versions without notice.
07:13:17,555 WARN [org.jboss.as.dependency.unsupported] (MSC service thread 1-10) JBAS015868: Deployment "deployment.auth-server.war" is using an unsupported module ("org.infinispan:main") which may be changed or removed in future versions without notice.
EAP 6.4
- Migrate from UPS 1.0.3 Postgres database
- Migrate from UPS 1.0.3 Mysql database
EAP 6.4.2
- Migrate from UPS 1.0.3 Postgres database
- Migrate from UPS 1.0.3 Mysql database
Wildfly 8.2
- Migrate from UPS 1.0.3 Postgres database
- Migrate from UPS 1.0.3 Mysql database