Installation Guide
For use with Red Hat JBoss Enterprise Application Platform 6
Abstract
Chapter 1. Product Overview
1.1. About Red Hat JBoss Enterprise Application Platform 6
1.2. Features of JBoss EAP 6
Feature | Description |
---|---|
Java Certification | Java Enterprise Edition 6 Full Profile and Web Profile certified. |
Managed Domain |
|
Management Console and Management CLI | New domain or standalone server management interfaces. XML configuration file editing is no longer required. The Management CLI also includes a batch mode that can script and automate management tasks. |
Simplified directory layout | The modules directory now contains all application server modules. The common and server-specific lib directories are deprecated. The domain and standalone directories contain the artifacts and configuration files for domain and standalone deployments respectively. |
Modular class loading mechanism | Modules are loaded and unloaded on demand. This improves performance, has security benefits and reduces start-up and restart times. |
Streamlined Data source management | Database drivers are deployed like other services. In addition, datasources are created and managed directly in the Management Console or Management CLI. |
Reduced and more efficient resource use | JBoss EAP 6 uses fewer system resources and uses them more efficiently than previous versions. Among other benefits, JBoss EAP 6 starts and stops faster than JBoss EAP 5. |
1.3. About the Red Hat Customer Portal
- Manage and maintain Red Hat entitlements and support contracts.
- Download officially-supported software.
- Access product documentation and the Red Hat Knowledgebase.
- Contact Global Support Services.
- File bugs against Red Hat products.
Chapter 2. Installation Instructions
2.1. JBoss EAP 6 Installation Methods
Note
Method
|
Description
|
Instructions
|
---|---|---|
Zip Installation
|
The Zip archive is suitable for installation on all supported operating systems. This process should be used if you wish to extract the instance manually.
| |
JAR Installer
|
The JAR installer can be run in a console, or as a graphical wizard. Both options provide step-by-step instructions for installing and configuring the server instance. Additional setup, including the Quickstarts and Maven Repository, is also possible with the installer. This is the preferred way to install JBoss EAP 6 on all supported platforms.
| |
RPM Installation
|
JBoss EAP 6 can be installed with the supported RPM package graphical installer, or with a command-line interface. This method is suitable for supported installations of Red Hat Enterprise Linux 5, 6 and 7.
|
2.2. JBoss EAP 6 Installation Prerequisites
Installation type | Prerequisites |
---|---|
Common Prerequisites |
|
ZIP/Installer Prerequisites |
|
RPM Prerequisites |
From Red Hat Enterprise Linux 7, the term channel was replaced with the term repository.
|
2.3. Zip Installation
2.3.1. Download JBoss EAP 6 (Zip Installation)
Prerequisites:
The JBoss EAP 6 ZIP file is available from the Red Hat Customer Portal. The ZIP file installation is platform-independent. This topic covers the steps to download the archive.
Procedure 2.1. Download the ZIP file
- Open a browser and log into the Customer Portal at https://access.redhat.com.
- Click.
- Click Red Hat JBoss Enterprise Application Platform in the Product Downloads list.
- Select the correct JBoss EAP version from the Version drop-down menu.
- Find Red Hat JBoss Enterprise Application Platform 6.x.x in the list and click the option.
JBoss EAP 6 is now downloaded to your target machine, ready for installation.
2.3.2. Install JBoss EAP 6 (ZIP Installation)
Previous Step in Zip Installation
This topic covers the steps to install JBoss EAP 6 using the downloaded ZIP file.
Procedure 2.2. ZIP File Installation
Move the ZIP archive to the desired location.
Move the ZIP file to the server and directory where you plan to install JBoss EAP 6. The user who will start and stop the server must have read and write access to this directory.Use an appropriate application to extract the ZIP archive to the desired location.
In a Red Hat Enterprise Linux environment, use theunzip
utility to extract the contents of the ZIP archive.In a Microsoft Windows environment, right-click the file and select Extract All.In a Hewlett-Packard HP-UX environment, use theunzip
utility to extract the contents of the ZIP archive.
JBoss EAP 6 has been installed successfully. The directory created by extracting the ZIP archive is the top-level directory for the server. This is referred to as EAP_HOME
.
2.4. Uninstall JBoss EAP 6 (Zip Installation)
Backup any modified configuration files and deployments that may be reused in a later instance.
This section covers the steps required to uninstall a Zip installation of JBoss EAP 6.
Procedure 2.3. Uninstall JBoss EAP 6 (Zip installation)
- Go to the directory where you had extracted the JBoss EAP 6 folder from the Zip file.
Delete the installation directory.
JBoss EAP 6 installs in a single directory when you use the Zip installation method. Delete the installation directory to uninstall JBoss EAP 6.Optional: Delete any initialization scripts you created.
If you created initialization scripts or other scripts which depended upon JBoss EAP 6 being installed on your computer, delete them.
JBoss EAP 6 is uninstalled from the server.
2.5. Installer
2.5.1. Download JBoss EAP 6 (Installer)
Prerequisites:
The JBoss EAP 6 installer archive is available from the Red Hat Customer Portal. The .jar
archive can be used to run either the graphical or text-based installers. The installer is the preferred way to install JBoss EAP 6 on all supported platforms. This topic covers the steps to download the archive.
Procedure 2.4. Download the Installer
- Open a browser and log into the Customer Portal at https://access.redhat.com.
- Click.
- Click Red Hat JBoss Enterprise Application Platform in the Product Downloads list.
- Select the correct JBoss EAP version from the Version drop-down menu.
- Find Red Hat JBoss Enterprise Application Platform 6.x.x Installer in the list and click the option.
JBoss EAP 6 is now downloaded to your target machine, ready for installation.
2.5.2. Run the JBoss EAP Installation Program
Procedure 2.5. Run the JBoss EAP Installation Program
- Open a terminal and navigate to the directory containing the downloaded installation program JAR.
- Type the following command:
java -jar jboss-eap-6.x.x-installer.jar
Note
In the Hewlett-Packard HP-UX or Solaris environment, you can specify the required architecture by using the -d32/-d64 switch. Launch the installer by executing either of these commands:
orjava -jar -d64 jboss-eap-6.x.x-installer.jar
java -jar -d32 jboss-eap-6.x.x-installer.jar
- Follow the instructions in the table below.
Screen name
|
When it Appears
|
Description
|
---|---|---|
Always
|
Choose the desired language for the installation program and click
.
| |
Always
|
The EULA for RED HAT JBOSS MIDDLEWARE.
Select "I accept the terms of this license agreement", and click
.
| |
Always
|
Select the installation path for JBoss EAP and click
. You are prompted to create the new directory, or, if it exists, to replace the named directory.
| |
Always
|
Select the packs to install. Required packs are disabled for deselection.
| |
Always
|
Create an administrative user and assign a password. The password must be at least eight characters long, with one alphabetic character, one digit, and one non-alphanumeric character. Then click
.
| |
Always
|
Install the quickstart examples. If you would like to install them, choose
and select the installation path. If you do not wish to install them, choose . Then click .
| |
If you choose to install the quickstart examples
|
A publicly hosted Maven repository is available for use with the quickstarts. The default selections automatically configure your installation to use this repository. This is the easiest way to run the quickstarts. If you prefer, specify the path to a locally installed repository, Specify a path if your Maven settings file is not in the default location.
| |
Always
|
Determine whether the installation will use the default port bindings, configure custom port bindings, or configure port offsets for all default bindings. If you select custom bindings, select whether to configure the ports for standalone mode, domain mode, or both. If you choose to configure port offsets, choose the offset.
If the host is configured for IPv6 only, check the Enable pure IPv6 configuration checkbox and the installer will make the required configuration changes.
Click
.
| |
If you choose to configure the custom port bindings for standalone mode
|
Configure the ports and system properties for the various standalone modes, then click
.
| |
If you choose to configure the custom port bindings for domain mode.
|
Configure the ports and system properties for the various domain modes, then click
.
| |
Always
|
Select the preferred startup option on completion of the installation process. Then click
.
| |
Always
|
Choose
to configure log levels, or to skip this configuration. Then click .
| |
Always
|
Choose
to install the default configuration. Choose to choose from a list of advanced configuration options. Advanced options can also be configured after installation. Then click .
| |
If you choose to install password vault in advanced configuration of runtime environment
|
Configure a password vault to store all your sensitive passwords in an encrypted keystore and click
. For more information, see Mask the Keystore Password and Initialize the Password Vault in the Administration and Configuration Guide.
| |
If you choose to enable SSL security in advanced configuration of runtime environment
|
Configure an SSL keystore for securing EAP management interfaces. Then click
. For more information, see Generate a SSL Encryption Key and Certificate in the Security Guide.
Warning
Red Hat recommends that you explicitly disable SSL in favor of TLSv1.1 or TLSv1.2 in all affected packages.
| |
If you choose to enable LDAP Configuration in advanced configuration of runtime environment
|
Enable LDAP authentication to use an LDAP directory server as the authentication source for the Management Console, Management CLI or Management API. When you are done click
. For more information, see Use LDAP to Authenticate to the Management Interfaces in the Administration and Configuration Guide.
| |
If you choose to install Infinispan cache in advanced configuration of runtime environment
|
Create an Infinispan cache for managing cached data. Give an Infinispan name, configure the other fields and click
. For more information see the chapter entitled Infinispan in the Administration and Configuration Guide .
| |
If you choose to add a security domain in advanced configuration of runtime environment
|
Configure a security domain to incorporate the services provided by PicketBox to a JBoss EAP server instance. Most of the fields are already populated with default values and do not need modifications. When you are done click
. For more information, see Security Domains in the Administration and Configuration Guide.
| |
If you choose to install a JDBC driver in advanced configuration of runtime environment
|
Install and setup a JDBC driver to convert your application code to the relevant database language. Choose an appropriate driver from the supported list of drivers which appears in "Driver Vendor" drop down list. For more information, see the chapter entitled Datasource Management in the Administration and Configuration Guide.
| |
If you choose to install a datasource in advanced configuration of runtime environment
|
Configure a datasource which can be used by applications. Give a datasource name, configure the other fields and click
. For more information, see Datasource Configuration in the Administration and Configuration Guide.
| |
Always
|
Review your selections and click
.
| |
Always
|
When installation progress completes, click
.
| |
Always
|
When processing finishes, click
.
| |
Always
|
Select the
check box to create shortcuts and then, use the appropriate option to configure shortcuts. Only alphanumeric characters, em dash (-) and underscore (_) characters are allowed. On Microsoft Windows, the slash (/) and backslash (\) characters are also allowed. Click to create shortcuts.
| |
Always
|
Click
if you want to capture the selected installation options. Then click .
Installation is now complete.
|
Procedure 2.6. Text-based Install Process
- Open a terminal and navigate to the directory containing the downloaded installation program JAR.
- Launch the Text-based installer by executing the following command:
java -jar jboss-eap-6.x.x-installer.jar -console
- Follow the steps to install JBoss EAP 6.
The installation is complete and JBoss EAP 6 is installed on your target machine.
2.5.3. Uninstall JBoss EAP 6 (Installer)
Previous Step in Installer
This section details the steps required to uninstall an instance of JBoss EAP 6 that was installed using either the graphical or text-based installer.
Procedure 2.7. Uninstall JBoss EAP 6 (Graphical Installation)
- During the installation of JBoss EAP 6 on the target machine, a directory called
Uninstaller
was created in the directory where you had installed JBoss EAP 6. This directory contains a file calleduninstaller.jar
. Navigate to this directory in a terminal window. - Launch the GUI uninstaller by executing the following command:
The execution of the command will launch the graphical uninstaller as shown in the following figure. Select the check box if you want to delete the JBoss EAP 6 installation directory.java -jar uninstaller.jar
Figure 2.1. Uninstall JBoss EAP 6 using the graphical installer
- Press thebutton to start the uninstall process.
- When the uninstall process is finished, press thebutton to exit the uninstaller. After a successful uninstall, you may want to manually remove the
Uninstaller
directory from where you launched the uninstaller.
Procedure 2.8. Text-based Uninstall Process
- In a console, navigate to the
Uninstaller
directory created during the installation process. This can be found one level above EAP_HOME. - Launch the Text-based uninstaller by executing the following command:
java -jar uninstaller.jar -console
- Follow the steps to uninstall JBoss EAP 6.
JBoss EAP 6 is uninstalled from your server.
2.6. RPM Installation
2.6.1. About JBoss EAP 6 Software Channels
Note
channel
was replaced with the term repository
. In these instructions only the term channel
is used.
Warning
2.6.2. JBoss EAP Channel Naming Convention
jbappplatform-6-ARCHITECTURE-server-6-rpm
. Installing JBoss EAP 6.4 on an x86_64 architecture and Red Hat Enterprise Linux 6 would require a subscription to the jbappplatform-6-x86_64-server-6-rpm
channel.
jbappplatform-EAP_VERSION-ARCHITECTURE-server-RHEL_VERSION-rpm
.
jb-eap-EAP_VERSION-for-rhel-7-server-rpms
for x86_64 architecture and jb-eap-EAP_VERSION-for-rhel-7-for-power-rpms
for ppc64 architecture
- EAP_VERSION
- This is the major and minor version of JBoss EAP. An EAP_VERSION value of
6.4
would install JBoss EAP 6.4, while a value of6
would install JBoss EAP 6. - ARCHITECTURE
- This is either
i386
,x86_64
orppc
. - RHEL_VERSION
- This is either
5
for Red Hat Enterprise Linux 5,6
for Red Hat Enterprise Linux 6 or7
for Red Hat Enterprise Linux 7.
2.6.3. How to Subscribe to the JBoss EAP 6 Current Channel
- Ensure that your Red Hat Enterprise Linux system is registered to your account using Red Hat Subscription Manager. For more information, see the Red Hat Subscription Management documentation.
- Enter the following command to subscribe to the JBoss EAP 6 current repository:
subscription-manager repos --enable=jb-eap-6-for-rhel-7-server-rpms
- Ensure that your Red Hat Enterprise Linux system is registered to your account using Red Hat Network Classic. For more information, see the this Customer Portal solution: https://access.redhat.com/solutions/11216.
- Enter the following command to subscribe to the JBoss EAP 6 current channel:
rhn-channel --add -c jbappplatform-6-x86_64-server-6-rpm
Note
Therhn-channel
command does not provide an error message if the specified software channel does not exist. Before proceeding, confirm the registration was successful by listing the subscribed channels. To do this, enter the following command:rhn-channel
-l
2.6.4. How To Subscribe to the JBoss EAP 6 Minor Channel
- Ensure that your Red Hat Enterprise Linux system is registered to your account using Red Hat Subscription Manager. For more information, see the Red Hat Subscription Management documentation.
- Enter the following command to subscribe to the JBoss EAP 6 minor repository:
subscription-manager repos --enable=jb-eap-6.4-for-rhel-7-server-rpms
- Ensure that your Red Hat Enterprise Linux system is registered to your account using Red Hat Network Classic. For more information, see the this Customer Portal solution: https://access.redhat.com/solutions/11216.
- Enter the following command to subscribe to the JBoss EAP 6 minor channel:
rhn-channel --add -c jbappplatform-6.4-x86_64-server-6-rpm
Note
Therhn-channel
command does not provide an error message if the specified software channel does not exist. Before proceeding, confirm the registration was successful by listing the subscribed channels. To do this, enter the following command:rhn-channel
-l
2.6.5. Support for Changing Subscription Channels
- Changing from the current channel to a minor channel
- Supported if changing to the latest minor channel.
- Changing from a minor current channel to another minor channel
- Supported if changing to the next minor JBoss EAP version. For example, changing from JBoss EAP 6.3 to JBoss EAP 6.4 is supported, but from JBoss EAP 6.3 to JBoss EAP 6.5 is not supported.
- Changing from a minor channel to the current channel
- Supported if changing from the latest minor channel.
2.6.6. How to Change from the Current Channel to the Minor Channel
current
channel and you want to instead switch to the minor
channel. Doing so will ensure that the system will only receive updates to the JBoss EAP 6.4 RPMs and it will not be updated to a later version.
current
channel and instead subscribe to the minor
channel.
yum update
rhn-channel --remove -c jbappplatform-6-x86_64-server-6-rpm
rhn-channel --add -c jbappplatform-6.4-x86_64-server-6-rpm
Note
rhn-channel
command does not provide an error message if the specified software channel does not exist. Before proceeding, confirm the registration was successful by listing the subscribed channels. To do this, enter the command:
rhn-channel
-l
current
channel and instead subscribe to the minor
channel.
yum update
subscription-manager repos --disable=jb-eap-6-for-rhel-7-server-rpms --enable=jb-eap-6.4-for-rhel-7-server-rpms
2.6.7. Install JBoss EAP 6 (Graphical RPM Installation)
Prerequisites:
The Graphical RPM package method of installing JBoss EAP 6 is available for Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6. This topic covers the steps required to complete the installation.
Procedure 2.9. Install JBoss EAP 6 (Graphical RPM Installation)
Launch PackageKit
PackageKit is an open source package management software installed as part of Red Hat Enterprise Linux. On the target machine launch PackageKit by selecting→ → .- Type
jboss-eap6
in the search box and then press the button. You will be presented with the JBoss EAP 6 package in the result box. - Select the JBoss EAP 6 package and press thebutton. See figure below.
Figure 2.2. JBoss EAP 6 PackageKit Install
- Follow the rest of the steps to install JBoss EAP 6 on your target machine.
The installation is complete and JBoss EAP 6 is installed in your target machine.
2.6.8. Install JBoss EAP 6 (Text-based RPM Installation)
Prerequisites:
The RPM package method of installing JBoss EAP 6 is appropriate for Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, and Red Hat Enterprise Linux 7. This topic covers the steps required to install an instance using the command line.
Procedure 2.10. Install JBoss EAP 6 (Text-based RPM Installation)
Install the RPM packages
Use YUM to install the default JBoss EAP 6 group package by using thegroupinstall
command.yum groupinstall jboss-eap6
Configure initialization options.
The RPM install contains initialization scripts for launching the server. The configuration for the initialization scripts are contained in several additional files. Refer to Section A.4, “RPM Installation Configuration Files for JBoss EAP 6” for details about these files and the options contained within.
The installation is complete. The default EAP_HOME
path for the RPM installation is /usr/share/jbossas
. Refer to Section A.3, “RPM Package List for JBoss EAP 6” for a complete list of all the packages installed.
2.6.9. Configure RPM Service Properties
- Specify the server configuration file.
- When starting a standalone server, the
standalone.xml
file is used by default. When running in a managed domain, thehost.xml
file is used by default. You can start JBoss EAP with a different configuration file by setting theJBOSS_SERVER_CONFIG
property in the appropriate RPM configuration file, for example,/etc/sysconfig/jbossas
. See Section A.4, “RPM Installation Configuration Files for JBoss EAP 6” for the list of RPM configuration files.JBOSS_SERVER_CONFIG="standalone-full-ha.xml"
- Set JVM options or Java properties.
- You can specify JVM options or Java properties to pass into the JBoss EAP startup script by editing the startup configuration file. This file is
EAP_HOME/bin/standalone.conf
for a standalone server orEAP_HOME/bin/domain.conf
for a managed domain. The below example configures the heap size and binds the JBoss EAP management interfaces to an IP address.JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m" JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.0.1"
2.7. Automated Installation
2.7.1. Install Multiple Instances of JBoss EAP 6 (Installer)
Prerequisites
- Generate an automatic installation script using the Graphical or Text-based Installer:
Multiple identical instances of JBoss EAP 6 can be installed using an automatic installation script, generated during the installation process, using either the Graphical or Text-based installer. This topic covers the steps required to install JBoss EAP 6 using a generated script.
Procedure 2.11. Automated Installation
- In a terminal, run the following command to install JBoss EAP 6 using the automatic installation script:
java -jar jboss-eap-6.x.x-installer.jar
auto.xml
Note
When you use the automatic installation script (auto.xml) for automated installation the installer by default will generate a prompt for entering all passwords.
An identical instance of JBoss EAP 6 has been installed, based on the automatic installation script.
2.7.2. Use Automatic Installation Script (auto.xml) from Different Sources for Installing JBoss EAP 6
auto.xml
) from any of the network locations irrespective of where it is being run. Thus the installer (jboss-eap-6.x.x-installer.jar
) and the automatic installation script (auto.xml
) can be located on different machines. This topic covers the steps to install JBoss EAP 6 automatically from a different network location.
- In a terminal type either of the following commands to specify the automatic installation script (present at a different network location) to your current network location.To access the installation script via HTTP, enter the following command, replacing
network-host
with the hostname of the FTP or HTTP server andauto.xml
with the filename of the installation script.java -jar
jboss-eap-6.x.x-installer.jar
http://network-host/auto.xmlTo access the installation script via FTP, enter the following command:java -jar
jboss-eap-6.x.x-installer.jar
ftp://network-host/auto.xml
JBoss EAP 6 is installed on your machine.
2.8. Automated Installation Approaches
2.8.1. About Automated Installation Approaches
Run the installer and generate an automatic installation script using Graphical or Text-based installer: Section 2.5.2, “Run the JBoss EAP Installation Program”
You may use two approaches to install JBoss EAP 6 automatically using the automatic installation script generated by the installer:
- The first approach is to specify all the key/password values needed for automatic installation in the automatic installation variable file
- The second approach is to specify the key/password values during install time
2.8.2. Install JBoss EAP 6 by Pre-setting the Key/Password Values in the Automatic Installation Variable File
Procedure 2.12.
Enter key values in variable file
JBoss EAP 6 installer creates an automatic installation script and an automatic installation variable file. The automatic installation variable file contains a list of keys and password parameters needed for automatic installation. To enter key values open the automatic installation variable file. Fill in a valid key/password value against each key parameter. For example:adminPassword = password#2 vault.keystorepwd = vaultkeystorepw ssl.password = user12345
Run the installer with the variablefile filename argument to begin automated installation
You can begin a fully automated JBoss EAP installation by running the installer with thevariablefile
argument. This argument supplies the variable file key/password values (step 1) to the installer.To begin a fully automated installation, open a terminal and enter the following command, replacingauto.xml
andauto.xml.variables
with the names of your files:java -jar
jboss-eap-6.x.x-installer.jar
auto.xml
-variablefileauto.xml.variables
JBoss EAP 6 is installed on your machine.
2.8.3. Install JBoss EAP 6 automatically by Specifying the Key Values/Passwords During Installation
Procedure 2.13.
Run the Installer with the Variables Argument
Start the automated installation by running the installer with thevariables
argument and then specifying a variable list. Thevariables
specifies the variables and their key or password values during installation. To initiate the installation process open a terminal and enter the following command, replacing the filenameauto.xml
and the variables' values with your own:java -jar
jboss-eap-6.x.x-installer.jar
auto.xml
-variables adminPassword=password#2,vault.keystorepwd=vaultkeystorepw,ssl.password=user12345Note
It is important to specify the variable names (adminPassword, keystorepwd and ssl.password) without any empty space for successful installation.
2.9. Installing Native Components and Utilities
2.9.1. Install Native Components and Native Utilities (Zip, Installer)
Prerequisites
- Install JBoss EAP 6 using the Zip installation, Graphical Installer, or Text-based Installer:
- Access to the Management CLI or the Management Console for the JBoss EAP 6 server. Refer to Launch the Management CLI or Log in to the Management Console in the Administration and Configuration Guide.
- For Native Components in Red Hat Enterprise Linux 6 and 7 environments:
- Ensure that the Apache Portability Runtime (APR) and OpenSSL libraries are installed and updated to the latest version available in the official repositories. Outdated OpenSSL libraries can cause issues as more recent JBoss EAP Native Components require features not available in older versions of OpenSSL. To ensure they are updated, open a terminal and enter the following command:
sudo yum update apr apr-util openssl
- If you intend to use the Tomcat Native Library which is part of the JBoss EAP Native Components, the operating system package
tomcatjss
must be removed before installation.
- For Native Components in a HP-UX environment, OpenSSL must be installed.
Procedure 2.14. Download and Install Native Components
- Download the Native Components package for your operating system and architecture from the Red Hat Customer Portal. You can download the packages from the same location specified in Section 2.3.1, “Download JBoss EAP 6 (Zip Installation)”.
- Extract the downloaded Native Components zip archive over your JBoss EAP 6 installation.You can verify a successful extraction by checking if there is a new folder for your operating system and architecture in
EAP_HOME/modules/system/layers/base/org/jboss/as/web/main/lib/
. - Using the Management CLI, activate the native components for the web subsystem with the following command:
/subsystem=web:write-attribute(name=native,value=true)
- Restart the JBoss EAP 6 server to apply the changes.
Procedure 2.15. Download and Install Native Utilities
- Download the Native Utilities package for your operating system and architecture from the Red Hat Customer Portal. You can download the packages from the same location specified in Section 2.3.1, “Download JBoss EAP 6 (Zip Installation)”.
- Extract the downloaded Native Components zip archive over your JBoss EAP 6 installation.You can verify a successful extraction by checking if there is
native
directory inEAP_HOME/modules/system/layers/base/
. - Refer to procedures in the JBoss EAP documentation suite and on the Red Hat Customer Portal to configure specific native utilities features.
2.9.2. Install Native Components and Native Utilities (RPM Installation)
Prerequisites
Procedure 2.16. Install Native Components and Native Utilities
Install native components and utilities
To install native components and utilities in Red Hat Enterprise Linux 5, 6 and 7 (with their dependencies) run the following command using your administration account, replacingpackage_name
with name of the native component which you need to install:yum install
package_name
You can install these native components:mod_cluster-native
,mod_jk
,mod_rt
,mod_snmp
,apache-commons-daemon-jsvc-eap6
,httpd
,httpd-devel
,jbossas-hornetq-native
,jbossas-jbossweb-native
.Important
The native componentsjbossas-hornetq-native
andjbossas-jbossweb-native
are installed by default when you run theyum groupinstall jboss-eap6
command to install JBoss EAP 6 group package. If you have used Section 2.6.7, “Install JBoss EAP 6 (Graphical RPM Installation)” or Section 2.6.8, “Install JBoss EAP 6 (Text-based RPM Installation)” for JBoss EAP 6 installation you need not installjbossas-hornetq-native
andjbossas-jbossweb-native
.Note
It is important to give the correct package name in order to install a specific native component. Package names are case sensitive. In Red Hat Enterprise Linux 7 the name of thehttpd
package ishttpd22
. Therefore the packagehttpd
must be replaced withhttpd22
when you runyum install
command for installing Apache HTTP server in Red Hat Enterprise Linux 7.package_name
Restart the server
Restart the JBoss EAP 6 server to apply the changes
2.10. Service Configuration
2.10.1. Configure JBoss EAP 6 as a Service in Red Hat Enterprise Linux (RPM Method)
Prerequisites
- Install JBoss EAP 6 using the RPM Method (Graphical or Text Based).
- Administrator privileges on the server are required.
Important
Use the following procedure to install JBoss EAP 6 as a service on Red Hat Enterprise Linux when the installation has been done using the RHN (RPM) method.
Procedure 2.17. Configure JBoss EAP 6 as a Service using the RPM Method in Red Hat Enterprise Linux
Install JBoss EAP 6
Install JBoss EAP 6 via the RPM method using one of the steps listed in the prerequisite sections listed above.Enable the service
The RPM install method for JBoss EAP 6 installs the requisite service files in their correct locations. All you need to do to set it up as service is issue the following command:chkconfig jbossas on
To set it up as a service in domain mode, issue the following command:chkconfig jbossas-domain on
JBoss EAP 6 starts automatically when the Red Hat Enterprise Linux reaches its default run-level, and stops automatically when the operating system goes through its shutdown routine.
2.10.2. Configure JBoss EAP 6 as a Service in Red Hat Enterprise Linux (Zip, Installer)
Prerequisites
- Install JBoss EAP 6 using the Zip installation, Graphical Installer, or Text-based Installer:
- Administrator privileges on the server are required.
Use the following procedure to install JBoss EAP 6 as a service on Red Hat Enterprise Linux when the installation has been done with either the zip, text, or graphical methods. This process does not apply when the installation has been done using the RHN (RPM) method.
Procedure 2.18. Set Up the Service
Note
jboss-as-standalone.sh
with jboss-as-domain.sh
.
Locate the start-up script and configuration file
The start-up script and an associated configuration file are located in theEAP_HOME/bin/init.d/
directory.Customize the start-up options in the
jboss-as.conf
fileOpen the filejboss-as.conf
in a text editor. There are several options within thejboss-as.conf
file. At the minimum, specify the correct values forJBOSS_HOME
and theJBOSS_USER
variables. If these variables are absent, add them.Copy files into system directories
- Create the
/etc/jboss-as
directory if it doesn't already exist.sudo mkdir /etc/jboss-as
- Copy the modified configuration file to the
/etc/jboss-as
directory.sudo cp EAP_HOME/bin/init.d/jboss-as.conf /etc/jboss-as
- Copy the start-up script to the
/etc/init.d
directory.sudo cp EAP_HOME/bin/init.d/jboss-as-standalone.sh /etc/init.d
To make the start-up script executable.sudo chmod +x /etc/init.d/jboss-as-standalone.sh
Add the start-up script as a service.
Add the newjboss-as-standalone.sh
service to list of automatically started services, using thechkconfig
service management command.sudo chkconfig --add jboss-as-standalone.sh
Start the service.
Test that the service has been installed correctly by using one of the following commands for Red Hat Enterprise Linux.- For Red Hat Enterprise Linux 5 and 6:
sudo service jboss-as-standalone.sh start
- For Red Hat Enterprise Linux 7:
sudo service jboss-as-standalone start
If everything has gone correctly, you should get a green [OK]. If you get an error, check the error logs and make sure your paths are correct in the configuration file.Note
The green [OK] does not appear for Red Hat Enterprise Linux 7.Make the service start automatically when you restart your server.
To add the service to the list of services which start automatically when your server restarts, issue the following command.sudo chkconfig jboss-as-standalone.sh on
JBoss EAP 6 starts automatically when the Red Hat Enterprise Linux reaches its default run-level, and stops automatically when the operating system goes through its shutdown routine.
Procedure 2.19. Uninstall the JBoss EAP 6 service from Red Hat Enterprise Linux
Note
jboss-as-standalone.sh
with jboss-as-domain.sh
.
- If the service is running, first open a terminal and stop the service by executing the
stop
command with the name of the service:sudo service jboss-as-standalone.sh stop
- Remove JBoss EAP from the list of services:
sudo chkconfig --del jboss-as-standalone.sh
- Remove the system directory files.
- Remove the service start-up script:
sudo rm /etc/init.d/jboss-as-standalone.sh
- Remove the service configuration file:
sudo rm /etc/jboss-as/jboss-as.conf
Important
/etc/jboss-as
is not a standard system directory. Only if there are no other files being used there, also remove the directory itself:sudo rm -rf /etc/jboss-as/
JBoss EAP 6 service is uninstalled from the server.
2.10.3. Configure JBoss EAP 6 as a Service in Microsoft Windows Server (Zip, Installer)
Prerequisites
- Install JBoss EAP 6 using the Zip installation, Graphical Installer, or Text-based Installer:
- Administrator privileges on the server are required.
- The
JAVA_HOME
system environment variable must be set. - The JBoss EAP 6 server instance must not be running.
Important
set
command at a Windows Server command prompt will not permanently set the environment variable. You must use either the setx
command, or the System interface in the Control Panel.
Use the following procedures to configure JBoss EAP 6 as a service on Microsoft Windows Server.
Procedure 2.20. Configure a Service for JBoss EAP 6 in Microsoft Windows Server
Create system environment variables
Create two system environment variables:JBOSS_HOME
pointing to the JBoss EAP 6 installation directory.NOPAUSE=1
If not already configured, download and extract the Native Utilities package for your architecture
If the Native Utilities for Windows Server package has not been installed as part of the JBoss EAP 6 installation, download the relevant 32-bit or 64-bit package from the Red Hat Customer Portal at https://access.redhat.com. Extract the Native Utilities zip archive over the JBoss EAP 6 installation.This will result in anative
directory in the following location in the JBoss EAP 6 installation:EAP_HOME\modules\system\layers\base\
Install the service
Open a terminal, and change directories toEAP_HOME\modules\system\layers\base\native\sbin
A new service can be created with theservice install
command, with the available options shown in the following table.Table 2.4. service install options Argument or Switch Description /startup Indicates the services to auto start. If not specified, the service is set to be started manually./controller HOST:PORT The host and port of the management interface. If omitted, the default islocalhost:9999
./host [DOMAIN_HOST] Indicates that domain mode is to be used, with an optional host controller name. If the host controller name is omitted, the default namemaster
is used./loglevel LEVEL The log level for the service, either:ERROR
,INFO
,WARN
orDEBUG
. If omitted, the default isINFO
/name SERVICE_NAME The name of the service to be created, must not contain spaces. If omitted, the default isJBossEAP6
/desc "DESCRIPTION" The description of the service. If omitted, the default is"JBoss Enterprise Application Platform 6"
/serviceuser DOMAIN\USERNAME Specifies the name of the account under which the service will run. Use an account name in the format of DOMAIN\USERNAME. If omitted, the service runs as the Local System account./servicepass PASSWORD Password for /serviceuser account./jbossuser USERNAME Optional, the JBoss EAP 6 username to use for the shutdown command./jbosspass PASSWORD Password for /jbossuser account, required if /jbossuser is specified./config XML_FILE Specifies the server-config to use. The default isstandalone.xml
ordomain.xml
./hostconfig XML_FILE Specifies the host config to use in Domain mode only. The default ishost.xml
./base directory Specifies the base directory for server/domain content as a fully qualified path. The default is%JBOSS_HOME%\standalone
or%JBOSS_HOME%\domain
./logpath path Specifies the path of the log files./base
applies when/logpath
is not defined. The default depends on the domain mode or standalone mode,%JBOSS_HOME%\domain\log
or%JBOSS_HOME%\standalone\log
./debug Runs the service install in debug mode.Below are basic examples of aninstall
command to create a new service in either standalone or domain mode. Execute the following command, adjusting the log level for the service as required:- Standalone mode:
service.bat install /loglevel INFO
- Domain mode:If you are not using the default master for your JBoss EAP 6 domain controller, replace master with the correct host name or alias of the JBoss EAP 6 domain controller.
service.bat install /host master /loglevel INFO
A new Windows service will be created with nameJBossEAP6
.Verify the new service in the Services console
Execute the following command in a terminal to open the Windows Services console:services.msc
If the default service name was used, in the list of Windows services, the new service will have the display name:JBossEAP6
. From the Services console you can start and stop the service, as well change its settings on how and when it starts.Starting and stopping the JBoss EAP 6 service from a terminal
To start the service from a terminal, use the following command, changing the service name if necessary:net start JBossEAP6
To stop the service from a terminal, use the following command, changing the service name if necessary:net stop JBossEAP6
A JBoss EAP 6 service is configured in Microsoft Windows Server.
Procedure 2.21. Uninstall the JBoss EAP 6 service from Microsoft Windows Server
- If the service is running, first open a terminal and stop the service by executing the
net stop
command with the name of the service:net stop JBossEAP6
In a terminal, change directories toEAP_HOME\modules\system\layers\base\native\sbin
and execute the following command:service uninstall
The JBoss EAP 6 service has been removed from Microsoft Windows Server.
Chapter 3. Patching and Upgrading JBoss EAP 6
3.1. About Patches and Upgrades
A major upgrade or migration is required when an application is moved from one major release to another, for example, from JBoss EAP 5 to JBoss EAP 6. This type of migration is not addressed in this guide. For instructions on how to migrate from previous releases of JBoss EAP, see the Migration Guide for JBoss EAP 6 located on the Customer Portal at https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/?version=6.4.
JBoss EAP periodically provides point releases, which are minor updates that include bug fixes, security fixes, and new features. Minor updates are not applied via patching. If you plan to migrate from one JBoss EAP point release to another, for example, from JBoss EAP 6.3 to JBoss EAP 6.4, code changes should not be required for applications that follow the Java EE specification and do not use any private, unsupported, or tech preview modules. Before you upgrade your JBoss EAP installation, be sure to review Section 3.3.1, “Prepare for the Upgrade” to avoid potential upgrade issues.
JBoss EAP also periodically provides individual or cumulative patches that contain bug and security fixes. Cumulative patches increment the minor release version by the last digit, for example from 6.4.1 to 6.4.2. These patches do not require migration and should not impact the server configuration files. The CLI patch feature can also rollback the patch and the configuration if desired. The patching process is covered in detail in the following sections of this chapter.
3.2. Patching JBoss EAP 6
3.2.1. About Patching Mechanisms
Important
- Asynchronous updates: Individual patches which are released outside the normal update cycle of the existing product. These may include security patches, as well as other individual patches provided by Red Hat Global Support Services (GSS) to fix specific issues.
- Planned updates: The cumulative patches of an existing product, which includes all previously developed updates for that version of the product.
Important
EAP_HOME/modules/system/layers/base/.overlays/$PATCH_ID/$MODULE
directory. The original files are left in EAP_HOME/modules/system/layers/base/$MODULE
. The patching mechanism cripples the original jar files for security reasons. This means that if you apply a patch which updates a module, the original module's jar files are altered to be unusable. If the patch is rolled back, the original files will be reverted back to a usable state. This also means that the proper rollback procedure must be used to rollback any applied patch. See Section 3.2.2.3, “Rollback the Application of a Patch in Zip Form Using the Patch Management System” for the proper rollback procedure.
3.2.2. Patching a Zip/Installer Installation
3.2.2.1. The Patch Management System
patch
command, or through the Management Console.
Important
Note
patch
command.
Argument or Switch | Description |
---|---|
apply | Applies a patch. |
--override-all | If there is a conflict, the patch operation overrides any user modifications. |
--override-modules | If there is a conflict as a result of any modified modules, this switch overrides those modifications with the contents of the patch operation. |
--override=path(,path) | For specified miscellaneous files only, this will override the conflicting modified files with the files in the patch operation. |
--preserve=path(,path) | For specified miscellaneous files only, this will preserve the conflicting modified files. |
--host=HOST_NAME | Available for Managed Domain servers, this specifies the host that the patch operation will be performed on. |
info |
Returns information on currently installed patches.
You can optionally provide
--patch-id=PATCH_ID -v for detailed information for a specific patch, including layer/add-on patches.
|
inspect | Inspects a downloaded patch file and returns important information about the patch. |
history | Returns information on the patching history. |
rollback | Rollsback the application of a patch. |
--patch-id=PATCH_ID | Required for rollback, the ID of the patch to rollback. |
--reset-configuration=TRUE|FALSE | Required for rollback, this specifies whether to restore the server configuration files as part of the rollback operation. |
--rollback-to | If the patch to rollback is an individual (one-off) patch, using this argument specifies that the rollback operation will also rollback all other one-off patches that have been applied on top of the specified patch. |
3.2.2.2. Installing Patches in Zip Form Using the Patch Management System
Prerequisites:
Patches that are in the zip format can be installed using the JBoss EAP 6 patch management system via either the Management CLI or the Management Console.
Important
Prerequisites
- Valid access and subscription to the Red Hat Customer Portal.
- A current subscription to a JBoss product installed in zip format.
- Access to either the Management CLI or the Management Console for the JBoss EAP 6 server to be updated. Refer to either the Log in to the Management Console or Launch the Management CLI chapters of the Administration and Configuration Guide for instructions on accessing these interfaces.
Warning
Procedure 3.1. Apply a zip patch to a JBoss EAP 6 server instance using the Management CLI
- Download the patch zip file from the Customer Portal at https://access.redhat.com/downloads/
- From the Management CLI, apply the patch with the following command including the appropriate path to the patch file:
patch apply /path/to/downloaded-patch.zip
Thepatch
tool will warn if there are any conflicts in attempting the apply the patch. Refer to Section 3.2.2.1, “The Patch Management System” for availablepatch
command switches to re-run the command to resolve any conflicts. - Restart the JBoss EAP 6 server for the patch to take effect:
shutdown --restart=true
Procedure 3.2. Apply a zip patch to a JBoss EAP 6 server instance using the Management Console
- Download the patch zip file from the Customer Portal at https://access.redhat.com/downloads/
- Navigate to the Patch Management View:
- For a standalone server, in the Management Console, click on the Administration tab at the top of the screen, then click Patch Management.
Figure 3.1. The Patch Management view for a standalone server
- For a managed domain, in the Management Console, click on the Administration tab at the top of the screen, then click Patch Management. Select the host you want to patch from the Host table, then click View.
Figure 3.2. The Patch Management view for a managed domain
- Click.
- If you are patching a managed domain host, on the next screen select whether to shutdown the servers on the host, and click.
- Click thebutton, select the downloaded patch you want to apply, and then click .
Figure 3.3. Apply Patch dialog
- If there are any conflicts in attempting to apply the patch, a warning will be displayed. Click View error details to see the detail of the conflicts. If there is a conflict, you can either cancel the operation, or select the Override all conflicts check box and click . Overriding conflicts will result in the content of the patch overriding any user modifications.
- After the patch has been successfully applied, select whether to restart the JBoss EAP 6 server now for the patch to take effect, and click.
The JBoss EAP 6 server instance is patched with the latest update.
3.2.2.3. Rollback the Application of a Patch in Zip Form Using the Patch Management System
The JBoss EAP 6 patch management system can be used to rollback the application of a previously applied zip patch, via either the Management CLI or the Management Console.
Warning
Important
Prerequisites
- A patch that was previously applied using the JBoss EAP 6 patch management system.
- Access to the Management CLI or the Management Console for the JBoss EAP 6 server. See Launch the Management CLI or Log in to the Management Console in the Administration and Configuration Guide located on the Customer Portal at https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/?version=6.4.
Warning
Reset Configuration
option:
TRUE
, the patch rollback process will also rollback the JBoss EAP 6 server configuration files to their pre-patch state. Any changes that were made to the JBoss EAP 6 server configuration files after the patch was applied will be lost.
FALSE
, the server configuration files will not be rolled back. In this situation, it is possible that the server will not start after the rollback, as the patch may have altered configurations, such as namespaces, which may no longer be valid and have to be fixed manually.
Procedure 3.3. Rollback a patch from a JBoss EAP 6 server instance using the Management CLI
- From the Management CLI, use the
patch info
command to find the ID of the patch that is to be rolled back.- For cumulative patches, the patch ID is the value of the first
cumulative-patch-id
shown in thepatch info
output. - Individual security or bug fix patch IDs are listed as the value of the first
patches
shown in thepatch info
output, with the most recently applied individual patch listed first.
- From the Management CLI, rollback the patch with the appropriate patch ID from the previous step.
patch rollback --patch-id=PATCH_ID --reset-configuration=TRUE
Thepatch
tool will warn if there are any conflicts in attempting the rollback the patch. Refer to Section 3.2.2.1, “The Patch Management System” for availablepatch
command switches to re-run the command to resolve any conflicts. - Restart the JBoss EAP 6 server for the patch rollback to take effect:
shutdown --restart=true
Procedure 3.4. Rollback a patch from a JBoss EAP 6 server instance using the Management Console
- In the Management Console:
- For a standalone server: click on the Administration tab at the top of the screen, then click Patch Management.
- For a managed domain: click on the Administration tab at the top of the screen, then click Patch Management. From the
Patch Management
table, select the relevant host, then click View.
- In the Recent Patch History table, select the patch that you want to rollback, then click .
Figure 3.4. Recent Patch History table for Patch Management
- For a managed domain host, on the next screen select whether to shutdown the servers on the host, and click.
- Choose your options for the rollback process, then click.
Figure 3.5. Choose Options dialogue
- Confirm the options and the patch to be rolled back, then click.
- If the Override all option was not selected and there are any conflicts in attempting to rollback the patch, a warning will be displayed. Click View error details to see the detail of the conflicts. If there is a conflict, you can either cancel the operation, or click and try the operation again with the Override all check box selected. Overriding conflicts will result in the rollback operation overriding any user modifications.
- After the patch has been successfully rolled back, select whether to restart the JBoss EAP 6 server now for the changes to take effect, and click.
The patch, and optionally also the server configuration files, are rolled back on the JBoss EAP 6 server instance.
3.2.2.4. Clearing Patch History
/core-service=patching:ageout-history
Important
3.2.3. Patching an RPM Installation
Prerequisites:
JBoss patches are distributed in two forms: ZIP (for all products) and RPM (for a subset of products). This task describes the steps you need to take to install the patches via the RPM format.
Prerequisites
- A valid subscription to the Red Hat Network.
- A current subscription to a JBoss product installed via an RPM package.
Procedure 3.5. Apply a patch to a JBoss product via the RPM method
yum
.
Note
patch
command.
Warning
- Get notified about the security patch either via being a subscriber to the JBoss watch mailing list or by browsing the JBoss watch mailing list archives.
- Read the errata for the security patch and confirm that it applies to a JBoss product in your environment.
- If the security patch applies to a JBoss product in your environment, then follow the link to download the updated RPM package which is included in the errata.
- Use
to install the patch.yum update
Important
When updating an RPM installation, your JBoss product is updated cumulatively with all RPM-released fixes.
The JBoss product is patched with the latest update using the RPM format.
3.2.4. Subscribe to Patch Mailing Lists
The JBoss team at Red Hat maintains a mailing list for security announcements for Red Hat JBoss Middleware products. This section covers what you need to do to subscribe to this list.
Prerequisites
- None
Procedure 3.6. Subscribe to the JBoss Watch List
- Click the following link to go to the JBoss Watch mailing list page: JBoss Watch Mailing List.
- Enter your email address in the Subscribing to Jboss-watch-list section.
- [You can enter your name and select a password for yourself. Doing so is optional but recommended.]
- Press thebutton to start the subscription process.
- You can browse the archives of the mailing list by going to: JBoss Watch Mailing List Archives.
After confirmation of your email address, you will be subscribed to receive security related announcements from the JBoss patch mailing list.
3.2.5. Severity and Impact Rating of JBoss Security Patches
Severity | Description |
---|---|
Critical |
This rating is given to flaws that could be easily exploited by a remote unauthenticated attacker and lead to system compromise (arbitrary code execution) without requiring user interaction. These are the types of vulnerabilities that can be exploited by worms. Flaws that require an authenticated remote user, a local user, or an unlikely configuration are not classed as critical impact.
|
Important |
This rating is given to flaws that can easily compromise the confidentiality, integrity, or availability of resources. These are the types of vulnerabilities that allow local users to gain privileges, allow unauthenticated remote users to view resources that should otherwise be protected by authentication, allow authenticated remote users to execute arbitrary code, or allow local or remote users to cause a denial of service.
|
Moderate |
This rating is given to flaws that may be more difficult to exploit but could still lead to some compromise of the confidentiality, integrity, or availability of resources, under certain circumstances. These are the types of vulnerabilities that could have had a critical impact or important impact but are less easily exploited based on a technical evaluation of the flaw, or affect unlikely configurations.
|
Low |
This rating is given to all other issues that have a security impact. These are the types of vulnerabilities that are believed to require unlikely circumstances to be able to be exploited, or where a successful exploit would give minimal consequences.
|
Example 3.1. CVSS v2 Impact Score
C:N/I:P/A:C
3.2.6. Manage Security Updates for Dependencies Bundled Inside the Applications Deployed on JBoss EAP
Tools and Data Sources
- JBoss patch mailing lists
- Subscribing to the JBoss patch mailing lists will keep you informed regarding security flaws that have been fixed in JBoss products, allowing you to check whether your deployed applications are bundling vulnerable versions of the affected components.
- Security advisory page for bundled components.
- Many open source components have their own security advisory page. For example, Struts 2 is a commonly-used component with many known security issues that is not provided as part of the JBoss EAP distribution. The Struts 2 project maintains an upstream security advisory page, which should be monitored if your deployed applications bundle Struts 2. Many commercially-provided components also maintain security advisory pages.
- Regularly scan your deployed applications for known vulnerabilities
- There are several commercial tools available to do this. There is also an open source tool called Victims, which is developed by Red Hat employees, but comes with no support or warranty. Victims provides plugins for several build and integration tools, which automatically scan applications for bundling known-vulnerable dependencies. Plugins are available for Maven, Ant and Jenkins. For more information about the Victims tool, see https://victi.ms/about.html.
3.3. Upgrading JBoss EAP 6
3.3.1. Prepare for the Upgrade
- This update may remove temporary folders. Any standalone or domain managed deployments stored in the
data/content/
directory must be backed up prior to the update and restored after it completes, otherwise the server will fail to start due to the missing content. - Prior to applying the update, handle any open transactions. Then delete the
data/tx-object-store/
transaction directory. - If you backup and restore your configuration files when updating to newer point releases, you could overwrite new configurations and prevent new features from being enabled automatically. The suggested approach is to compare the old configuration to the new configuration and only reapply specific configurations you need to keep. This can be done manually or by creating a CLI script that can apply the changes consistently to multiple server configuration files.
- You can copy an existing configuration for an update, but the server restart updates the file and it may no longer be compatible with the previous version of the server.
- The persistent timer
data/timer-service-data
data must be checked to determine whether it is compatible. Before the update, review thedeployment-BEAN_NAME
files in that folder to determine which timers are still in use.
3.3.2. Upgrade the JBoss EAP 6 ZIP Installation
Prerequisites
- Ensure that the base operating system is up to date.
- Determine which files have been modified since JBoss EAP 6 was installed.
- Back up any modified configuration files, deployments, and all user data.
This procedure covers upgrading a JBoss EAP 6 ZIP installation between minor versions (for example, from JBoss EAP 6.1 to 6.2). For installing patches for a specific minor version, refer to the Patch Installation section. Upgrading to the latest release of JBoss EAP 6 requires some initial work to back up the existing installation.
Warning
Procedure 3.7. Upgrade to the latest JBoss EAP 6 version
- Move the downloaded ZIP archive to the desired location. It is recommended that this is a different location to the existing JBoss EAP 6 installation.
Important
If you wish to install the latest version of JBoss EAP 6 to the same directory location as the existing installation, you will need to move the existing installation to a different location before proceeding. This is to prevent modified configuration files, deployments, and upgrades from being lost. - Unzip the archive. This step installs a clean instance of the latest JBoss EAP 6 release.
- Copy the EAP_HOME/domain/ and EAP_HOME/standalone/ directories from the previous installation over the new installation directories.
Note
New features in the new release, such as new subsystems, may not be activated if configuration files are copied from an older JBoss EAP 6 installation. To use these new features, it is necessary to compare and update the old configuration files with the ones from the new version. - Review the changes made to the
bin
directory of the previous installation, and make the equivalent modifications to the new directory.Warning
Files in thebin
directory should not be overwritten by the files from previous versions. Changes should be made manually. - Review the remaining modified files from the previous installation, and move these changes into the new installation. These files may include:
- The
welcome-content
directory. - Custom modules in the
modules
directory. - Custom bundles in the
bundles
directory.
- Optional: If JBoss EAP 6 was previously configured to run as a service, remove the existing service and configure a new service for the upgraded installation.
The JBoss EAP 6 ZIP installation has been successfully upgraded to the latest release.
3.3.3. Upgrade the JBoss EAP 6 RPM Installation
Prerequisites
- Ensure that the base operating system is up to date and that the system is subscribed and enabled to get updates for the Base OS channel.
- Ensure that the correct JBoss EAP 6 RHN channel is enabled. For example, on a x86, 64 bit architecture, this will be the JBoss Application Platform (v 6) for 6Server x86_64 channel (
jbappplatform-6-x86_64-server-6-rpm
). - Back up any modified configuration files, deployments, and all user data.
Upgrading to the latest release of JBoss EAP 6 requires some initial work to back up the existing installation. This topic covers upgrading the RPM installation via the Red Hat Network (RHN).
Warning
Procedure 3.8. Upgrade to the latest JBoss EAP 6 release
- Run the following command in a terminal to upgrade the installation:
yum update
- Manually merge each created
*.rpmnew
file that contains changes into the production configuration files.
JBoss EAP 6 has been successfully upgraded.
3.3.4. Upgrade JBoss EAP Cluster
Prerequisites
- None
JBoss EAP 6 does not support the creation of clusters where the different nodes are made up of different versions of JBoss EAP servers. Thus, a mixed cluster based on different versions is not supported and all nodes within a cluster must be the same version.
Warning
Procedure 3.9. Setup a JBoss EAP Cluster
- Refer to the HTTP Clustering and Load Balancing chapter of the JBoss EAP 6.4 Administration and Configuration Guide for instructions on how to setup a JBoss EAP cluster in 6.4.
- Migrate all traffic to this new cluster using the steps outlined in the Migrate Traffic between Clusters chapter of the JBoss EAP 6.4 Administration and Configuration Guide
Your JBoss EAP 6.3 cluster has been migrated to a cluster based on JBoss EAP 6.4.
Appendix A. Reference Material
A.1. Available Downloads for JBoss EAP 6
Name | Description | Operating Systems |
---|---|---|
Apache HTTP Server |
A standalone Apache HTTP server instance for each supported operating system and architecture. This HTTP server has been tested and verified to work with JBoss EAP 6.
|
Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, Microsoft Windows Server 2008, Solaris 10 and 11
|
Native Components |
Components which have been compiled to be optimized for a specific platform. For instance, DLLs are provided for Microsoft Windows Server environments. In some cases, the native components may provide performance improvements.
|
Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, Microsoft Windows Server 2008, Solaris 10 and 11, Hewlett-Packard HP-UX
|
Native Utilities |
Utilities specific to each supported operating system and architecture, such as scripts and utilities for installing JBoss EAP 6 as a service in your operating system and generating SSL encryption keys and certificates.
|
Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, Microsoft Windows Server 2008, Solaris 10 and 11, Hewlett-Packard HP-UX
|
Webserver Connector Natives |
Pre-compiled modules for Apache, Microsoft, and Oracle iPlanet web servers, for HTTP load balancing and high-availability capabilities. These binaries are extensively tested and known to work well with JBoss EAP 6.
|
Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, Microsoft Windows Server 2008, Solaris 10 and 11, Hewlett-Packard HP-UX
|
Javadocs |
Documentation for all public APIs exposed by JBoss EAP 6. You can install these into your local HTTP server or IDE, or can view them on your local machine.
|
Platform-independent
|
Installer |
Java installer for JBoss EAP 6. Includes steps to install the Quickstarts and Maven Repository.
|
Platform-independent
|
Maven Repository |
A Maven repository which you can download and make available in your local development environment, and which contains artifacts common to applications built upon JBoss EAP 6. The Maven repository is also available through the JBoss EAP 6 Installer.
|
Platform-independent
|
Quickstarts |
Example applications to help you get started developing Java EE 6 applications with APIs supplied with JBoss EAP 6. The Quickstarts are also available through the JBoss EAP 6 Installer.
|
Platform-independent
|
Source Code |
The Java source code for JBoss EAP 6, provided so that you can recompile it in your own environment or audit it yourself.
|
Platform-independent
|
Application Platform |
The Zip installation package, which can be installed and run on every supported platform. This is the most common way to install JBoss EAP 6.
|
Platform-independent
|
Important
A.2. Directory Structure of JBoss EAP 6
JBoss EAP 6 includes a simplified directory structure, compared to previous versions. This topic contains a listing of the directories, and a description of what each directory contains.
standalone/
and domain/
folders.
Name | Purpose |
---|---|
appclient/ | Contains configuration details for the application client container. |
bin/ | Contains start-up scripts for JBoss EAP 6 on Red Hat Enterprise Linux and Microsoft Windows. |
docs/ | License files, schemas, and examples. |
domain/ | Configuration files, deployment content, and writable areas used when JBoss EAP 6 runs as a managed domain. |
modules/ | Modules which are dynamically loaded by JBoss EAP 6 when services request them. |
standalone/ | Configuration files, deployment content, and writable areas used when JBoss EAP 6 runs as a standalone server. |
welcome-content/ | Contains content used by the Welcome web application which is available on port 8080 of a default installation. |
.installation/ | Contains metadata for the patching mechanism. No modifications are required for the contents of this directory. |
jboss-modules.jar
| The bootstrapping mechanism which loads modules. |
JBossEULA.txt
| Contains license agreement details. |
LICENSE.txt
| Contains license details. |
version.txt
| Contains version details. |
Note
JBOSS_HOME/domain
cannot be shared among two host controllers nor between a domain controller and host controller.
Name | Purpose |
---|---|
configuration/ | Configuration files for the managed domain. These files are modified by the Management Console and Management CLI, and are not meant to be edited directly. |
data/ | Information about deployed services. Services are deployed using the Management Console and Management CLI, rather than by a deployment scanner. Therefore, do not place files in this directory manually. |
log/ | Contains the run-time log files for the host and process controllers which run on the local instance. |
servers/ | Contains the equivalent data/ , log/ , and tmp/ directories for each server instance in a domain, which contain similar data to the same directories within the top-level domain/ directory. |
tmp/ | Contains temporary data such as files pertaining to the shared-key mechanism used by the Management CLI to authenticate local users to the managed domain. |
Note
JBOSS_HOME/standalone
cannot be shared between two JBoss server instances.
Name | Purpose |
---|---|
configuration/ | Configuration files for the standalone server. These files are modified by the Management Console and Management CLI, and are not meant to be edited directly. |
data/ | Information about deployed services. Services are deployed using the Management Console and Management CLI, rather than by a deployment scanner. Therefore, do not place files in this directory manually. |
deployments/ | Information about deployed services. The standalone server does include a deployment scanner, so you can place archives in this directory to be deployed. However, the recommended approach is to manage deployments using the Management Console or Management CLI. |
lib/ | External libraries which pertain to a standalone server mode. Empty by default. |
log/ | Contains the run-time log files for the host and process controllers which run on the local instance. |
tmp/ | Contains temporary data such as files pertaining to the shared-key mechanism used by the Management CLI to authenticate local users to the server. |
A.3. RPM Package List for JBoss EAP 6
JBoss EAP 6 is installed on Red Hat Enterprise Linux 6 using the YUM package group JBoss EAP 6
. That group is made up of the following packages.
Package | Description |
---|---|
jbossas-appclient | JEE Application Client Container |
jbossas-core | Core components. This is required for all configurations. |
jbossas-domain | Domain configuration |
jbossas-hornetq-native | Container for the JBoss AS HornetQ files |
jbossas-jbossweb-native | JBoss Enterprise Web Platform |
jbossas-modules-eap | JBoss EAP modules |
jbossas-product-eap | Product configuration components. This customizes product execution. |
jbossas-standalone | Standalone configuration |
jbossas-welcome-content-eap | Welcome content used in startup messages and console pages |
Important
jbossas-hornetq-native
package is included for high availability in JBoss EAP 6 but it is not activated by default.
Note
A.4. RPM Installation Configuration Files for JBoss EAP 6
The RPM installation of JBoss EAP 6 includes three additional configuration files to the ZIP installation. These files are used by the service init script to specify the application server's launch environment. One of these files applies to all JBoss EAP 6 instances, while the other two provide overrides for standalone and domain mode servers.
File | Description |
---|---|
/etc/jbossas/jbossas.conf | This file is read first and applies to all JBoss EAP 6 instances. |
/etc/sysconfig/jbossas | Settings specific to standalone servers. Values specified here will override those in jbossas.conf when running as a standalone server. |
/etc/sysconfig/jbossas-domain | Settings specific to domain-mode servers. Values specified here will override those in jbossas.conf when running as a domain-mode server. |
Property | Description |
---|---|
JBOSS_USER |
The system user account that the JBoss EAP 6 runs as. This user also has ownership of the files.
Default value:
jboss
|
JBOSS_GROUP |
The system user group that the JBoss EAP 6 files belong to.
Default value:
jboss
|
JBOSS_STARTUP_WAIT |
The number of seconds that the init script will wait until confirming that the server has launched successfully after receiving a
start or restart command.
Default value:
60
|
JBOSS_SHUTDOWN_WAIT |
The number of seconds that the init script will wait for the server to shutdown before continuing when it receives a
stop or restart command.
Default value:
20
|
JBOSS_CONSOLE_LOG |
The file that the CONSOLE log handler will be redirected to.
Default value:
/var/log/jbossas/$JBOSSCONF/console.log
|
JAVA_HOME |
The directory where your Java Runtime Environment is installed.
Default value:
/usr/lib/jvm/jre
|
JBOSS_HOME |
The directory where the application server files are installed.
Default value:
/usr/share/jbossas
|
JAVAPTH |
The path where the Java executable files are installed.
Default value:
$JAVA_HOME/bin
|
JBOSSCONF |
The server mode to launch this server in,
standalone or domain .
Default value:
standalone or domain depending on server mode.
|
JBOSSSH |
The script which is used to launch to server.
Default value:
$JBOSS_HOME/bin/$JBOSSCONF.sh
|
JBOSS_SERVER_CONFIG |
The server configuration file to use.
There is no default for this property. Either
standalone.xml or domain.xml can be defined at start.
|
JBOSS_HOST_CONFIG | This property allows a user to specify the host configuration (such as host.xml ). It has no value set as the default. |
Appendix B. Installer Screenshots
B.2. End User License Agreement

Figure B.2. JBoss EAP Installation Program End User License Agreement
B.4. Select the Packs to Install

Figure B.4. JBoss EAP Installation Program Select Packs to Install
B.5. Administrative User Creation

Figure B.5. JBoss EAP Installation Program Administrative User Creation
B.6. Quickstart Installation

Figure B.6. JBoss EAP Installation Program Quickstart Setup
B.7. Maven Repository Setup

Figure B.7. JBoss EAP Installation Program Maven Repository Setup
B.8. Socket Binding Setup

Figure B.8. JBoss EAP Installation Program Default Socket Bindings

Figure B.9. JBoss EAP Installation Program Custom Port Socket Bindings

Figure B.10. JBoss EAP Installation Program Configure Offset for Default Socket Bindings
B.9. Custom Socket Bindings for Standalone Configurations

Figure B.11. JBoss EAP Installer Standalone Socket Binding Configuration

Figure B.12. JBoss EAP Installer Standalone HA Socket Binding Configuration

Figure B.13. JBoss EAP Installer Standalone Full Standalone Socket Binding Configuration

Figure B.14. JBoss EAP Installer Standalone Full HA Standalone Socket Binding Configuration
B.10. Custom Socket Bindings for Domain Configurations

Figure B.15. JBoss EAP Installer Domain Host Socket Binding Configuration

Figure B.16. JBoss EAP Installer Default Domain Socket Binding Configuration

Figure B.17. JBoss EAP Installer HA Domain Socket Binding Configuration

Figure B.18. JBoss EAP Installer Full Domain Socket Binding Configuration

Figure B.19. JBoss EAP Installer Full HA Domain Socket Binding Configuration
B.12. Configure Logging Levels

Figure B.21. JBoss EAP Installation Program Skip Logging Level Configuration

Figure B.22. JBoss EAP Installation Program Configure Logging Levels
B.13. Configure Runtime Environment

Figure B.23. JBoss EAP Installation Program Configure Runtime Environment - Default

Figure B.24. JBoss EAP Installation Program Configure Runtime Environment - Advanced
B.14. Password Vault Configuration

Figure B.25. JBoss EAP Install Password Vault Configuration
B.18. Security Domain Configuration


Figure B.29. JBoss EAP Install Security Domain Configuration
B.21. Review Installation Components

Figure B.32. JBoss EAP Installation Program Review Selected Components
B.22. Installation Progress

Figure B.33. JBoss EAP Installation Program Component Installation Progress
B.23. Installation Processing Finished

Figure B.34. JBoss EAP Installation Program Processing Finished
B.25. Generate Install Script

Figure B.36. JBoss EAP Installation Program Generate Install Script
Appendix C. Revision History
Revision History | |||
---|---|---|---|
Revision 6.4.0-45 | Thursday November 16 2017 | ||
|