Installing ConSol CM
This section describes how to install the main product ConSol CM.
Please perform the following steps:
- Review the system requirements, see System requirements
- Prepare the database, see Setting up the database.
- Install the application server for ConSol CM
- Set up ConSol CM
- Configure ConSol CM, including authentication and email accounts.
Installing the application server
- Windows
- Linux
-
Extract the downloaded JBoss archive into a new folder.
-
Edit the file
<JBOSS_HOME>\bin\standalone.conf.bat:-
Change the Java memory options if needed:
set "JAVA_OPTS=-Xms4g -Xmx4g -Djava.net.preferIPv4Stack=true" -
Add the Java path (the path and Java version can be different on your system):
set "JAVA_HOME=C:\Program Files\Java\jdk-11.0.17+8"Alternatively you can add JAVA_HOME to your operating system environment variables. In this case it is not necessary to set the line above. Refer to the Java documentation on how to do this.
-
Add
DISABLE_JDK_SERIAL_FILTER=true(disable serialization filter) to avoid problems with object (de)serialization (only needed for JBoss EAP > 7.4.12).
-
-
Extract the downloaded JBoss archive into a new folder.
-
Edit the file
<JBOSS_HOME>/bin/standalone.conf:-
On most Linux systems the
JAVA_HOMEenvironment variable should already be set. If you wish to use the system standard Java version you do not need to specify theJAVA_HOMEenvironment variable. If in your case the variables are not set, or you wish to specify a path to a specific Java installation add the following line (the path and Java version can be different on your system):JAVA_HOME="/opt/java/64/jdk-11.0.17+8"You can use echo
$JAVA_HOMEto check if the variable is set correctly. -
Adjust the JVM memory options, the
-Xmxvalue should be at least 4G. If you want to set the options only when noJAVA_OPTShave been set yet, then use the following statement:## Specify options to pass to the Java VM.#if [ "x$JAVA_OPTS" = "x" ]; thenJAVA_OPTS="-Xms4g -Xmx4g -Djava.net.preferIPv4Stack=true"JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"elseecho "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"fiIf you want to overwrite existing
JAVA_OPTS, do not put theJAVA_OPS=statements into the if clause -
If the
JBOSS_HOMEenvironment variable is already set to a path other than your server path, add the following line at the top of<JBOSS_HOME>/bin/standalone.conf. Remember thatYOUR_JBOSS_HOMEis the path to your JBoss installation.JBOSS_HOME={YOUR_JBOSS_HOME} -
Add
DISABLE_JDK_SERIAL_FILTER=true(disable serialization filter) to avoid problems with object (de)serialization (only needed for JBoss EAP > 7.4.12).
-
-
Change owner to a non-admin Linux user (example:
consolcm) and make the files executable:chown -R consolcm {JBOSS_HOME}/binchmod 755 -R {JBOSS_HOME}/bin
The application server should always run under a user without administrator permissions / root access to the operating system.
Installing ConSol CM
- Extract the ConSol CM distribution
dist-package-distribution-<CM_VERSION>-wildfly_jboss.zipintoJBOSS_HOME. - Overwrite the 4 subfolders
bin,domain,modulesandstandalone, i.e. confirm the overwriting of existing files.
Configuring the database connection
The database connection is configured in the file cm6-config.properties in the bin directory.
You need to set the following properties:
- datasource.url: URL of the datasource. Example values:
- PostgreSQL: jdbc:postgresql://localhost:5432/cmdatabase
- MySQL: jdbc:mysql://localhost/cmdatabase?characterEncoding=UTF-8&serverTimezone=Europe/Berlin
- Microsoft SQL Server: jdbc:sqlserver://localhost:1433;databaseName=cmdatabase;encrypt=false;trustServerCertificate=true
- Oracle: jdbc:oracle:thin:@localhost:1521/SERVICE_NAME
- datasource.username: Name of the database user for ConSol CM
- datasource.password: Password of the database user for ConSol CM
If you use ConSol CM with CMRF, uncomment the lines with the CMRF datasource and set the required values.
If you use the standalone version of the authentication application (cm-auth-user-standalone.jar), you need to provide the database connection in the cmas-auth-user.properties file.
Adding the database driver (MySQL only)
MySQL Connector/J is the official JDBC driver for MySQL. The connector is not part of the ConSol CM distribution package. Therefore, you must copy it manually into the application server directory.
- Download the connector from http://dev.mysql.com/downloads/connector/j/ (select the platform-independent download). You need version 8.0.22.
- Extract the MySQL connector file
mysql-connector-java-8.0.22.zipinto a temporary folder. The folder contains the JDBC driver filemysql-connector-java-8.0.22-bin.jar. - Copy the JDBC driver, e.g.
mysql-connector-java-8.0.22-bin.jar, into the folder<JBOSS_HOME>\modules\system\layers\base\com\mysql\jdbc\main. - Edit the file
<JBOSS_HOME>\modules\system\layers\base\com\mysql\jdbc\main\module.xmllocated in the same folder. Change the line highlighted in red, so it points to your version of the MySQL connector.
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql.jdbc">
<resources>
<resource-root path="mysql-connector-java-8.0.22-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
Enabling traffic encryption (Microsoft SQL Server only)
The exchange of credentials is encrypted by default. In addition, the complete traffic can be encrypted by setting encrypt=true in the JDBC connection string. We recommend to switch on encryption on production systems after a thorough testing phase only.