In the console, change to the directory <Install-path>\<database>\bin .
For MariaDB as the database, it is the directory <Install-path>\mariadb\bin
Execute the command mysql.exe -u "username" -p
Bash
mysql -u root -p -h localhost
Once the connection is established, create the required database (in the MariaDB shell)
Bash
create database ece2;
Enter and execute the following commands with the corresponding variables for %mariadb-db-name%,%mariadb-wildfly-user%, %mariadb-wildfly-pw% and %host% .
XML
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'localhost' IDENTIFIED BY '%mariadb-wildfly-pw%';
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'127.0.0.1' IDENTIFIED BY '%mariadb-wildfly-pw%';
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'::1' IDENTIFIED BY '%mariadb-wildfly-pw%';
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'%host%' IDENTIFIED BY '%mariadb-wildfly-pw%';
FLUSH PRIVILEGES;
Exit MySQL Shell
Install JDBC driver
Restart WildFly service
Prepare RE Cockpit Environment
Linux
To prepare and structure the RE Cockpit environment, directories must be created in the shell.
Bash
cd /opt
sudo mkdir re-environment
cd re-environment
Install WildFly
Starting with RE 3.0.0, the RE Cockpit now requires WildFly 35 with Java 21 (LTS) instead of WildFly 18.0.1.
For new installations of RE 3.0.x, this means:
Use a WildFly 35 installation (instead of WildFly 18.0.1).
Configure Java 21 as the runtime for WildFly 35.
Apply the WildFly configuration steps described in this document (Datasources, JDBC drivers, Security Domain "ECE", Logging) to the WildFly 35 instance.
For upgrades from 2.x to 3.0.x, it is recommended:
to set up a new WildFly 35 instance in parallel,
to transfer the required configuration (Datasource, JMS, Security Domain, Logging),
to use the appropriate 3.0.x installer for WildFly 35 + Java 21.
The installation steps described below remain valid but must be applied to the new WildFly version.
These changes must be considered for both new installations and upgrades from 2.x to 3.0.x.
Linux
Linux
Download WildFly
Bash
cd ~/Downloads
wget http://download.jboss.org/wildfly/18.0.1.Final/wildfly-18.0.1.Final.zip
sudo mv ~/Downloads/wildfly-18.0.1.Final.zip /opt/re-environment/
cd /opt/re-environment
Extract contents into the directory /opt/re-environment
Edit standalone-full.xml so that it can access WildFly.
Find the IP address 127.0.0.1 and replace it with the server's IP address
Edit configuration. Find the JBOSS_CONFIG line and change it as follows:
/etc/default/wildfly.conf
XML
## Location of JDK
JAVA_HOME="/usr/java/jdk-9.0.4"
## Location of WildFly
JBOSS_HOME="/opt/re-environment/wildfly-18.0.1.Final"
## The username who should own the process.
JBOSS_USER=wildfly
## The mode WildFly should start, standalone or domain
JBOSS_MODE=standalone
## Configuration for standalone mode
JBOSS_CONFIG=standalone-full.xml
## Configuration for domain mode
# JBOSS_DOMAIN_CONFIG=domain.xml
# JBOSS_HOST_CONFIG=host-master.xml
## The amount of time to wait for startup
# STARTUP_WAIT=60
## The amount of time to wait for shutdown
# SHUTDOWN_WAIT=60
## Location to keep the console log
JBOSS_CONSOLE_LOG="/var/log/wildfly/console.log"
## Additionals args to include in startup
# JBOSS_OPTS="--admin-only -b 127.0.0.1"
Activate service-control
Bash
sudo systemctl enable wildfly
Copy the standalone.xml to the directory <Install-path>/WildFly/standalone/configuration
cd /opt/re-environment/wildfly-18.0.1.Final/standalone/configuration
sudo cp standalone.xml standalone.xml.original
sudo cp standalone-full.xml standalone.xml
WildFly stoppen und Konsole, in der es im Vordergrund gelaufen ist, schließen.
WildFly im Hintergrund starten
Bash
sudo systemctl start wildfly
Stop WildFly
Download and install the mySQL connector
sudo cd /opt
sudo wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.17.tar.gz
sudo tar -xvzf mysql-connector-java-8.0.17.tar.gz
Create the directory <Install-path>/WildFly/modules/system/layers/base/com/mysql/main and copy the JDBC-driver into the directory.
In the console, change to the directory <Install-path>\<database>\bin .
For MariaDB as the database, it is the directory <Install-path>\mariadb\bin, run the command mysql.exe -u "username" -p
Note
Here, the username and password of the database must be used.
c. Enter and execute the following commands with the corresponding variables for %mariadb-db-name%,%mariadb-wildfly-user%, %mariadb-wildfly-pw% and %host% .
XML
CREATE DATABASE %mariadb-db-name%;
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'localhost' IDENTIFIED BY '%mariadb-wildfly-pw%';
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'127.0.0.1' IDENTIFIED BY '%mariadb-wildfly-pw%';
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'::1' IDENTIFIED BY '%mariadb-wildfly-pw%';
GRANT ALL PRIVILEGES ON ece2.* TO %mariadb-wildfly-user%@'%host%' IDENTIFIED BY '%mariadb-WildFly-pw%';
FLUSH PRIVILEGES;
d. Exit mysql.exe
Install RE-Cockpit
Linux
Linux
ece.ear must be copied to the directory <Install-path>/WildFly/standalone/deployments.
Start the WildFly service
ece.ear will deploy automatically; this should be visible in the directory.
The RE Cockpit can be opened in the web browser at: http://%hostname%:8080/ece-web-client/
Windows
Windows
ece.ear must be copied into the directory <Install-path>\WildFly\standalone\deployments.
Start the IF_WildFly service
ece.ear deploys itself automatically; this should be visible in the directory.
The RE-Cockpit can be opened in a web browser at: http://%hostname%:8080/ece-web-client/.