2.5. Application Server Deployment

The following sections describe how to deploy EspressManager as a servlet under supported application servers.

The instructions assume that EspressChart 7.1 is installed on the system. The location of the EspressChart installation will be referenced as <EC_INSTALL_DIR>.

JDK 8 is the baseline Java version for these deployment instructions. Oracle JDK, OpenJDK, and Amazon Corretto can be used unless otherwise noted for a specific application server.

Make sure that EspressManager is running before users connect. EspressManager can be started from the EspressManager Monitor page described in each application server section or directly from the product installation directory.

<EC_INSTALL_DIR>\espressmanager.bat
[Note]Note

On non-Windows systems, use the corresponding espressmanager.sh script.

2.5.1. Apache Tomcat

The following instructions show how to install and configure Apache Tomcat and deploy EspressChart under Tomcat. The location of the Tomcat installation will be referenced as <TOMCAT_INSTALL_DIR> and the location of the EspressChart installation will be referenced as <EC_INSTALL_DIR>.

2.5.1.1. Installing Tomcat

These instructions are written for Windows systems. Steps for other operating systems should be similar.

Tomcat versions 5.5.x, 6.0.x, 8.5.x, and 9.0.x are supported.

  1. Open the Apache Tomcat 9 download page at https://tomcat.apache.org/download-90.cgi.

  2. Under Binary Distributions, locate Core and download the 64-bit Windows zip package.

    Click to view larger image

    Apache Tomcat 9 Download

  3. After the download completes, extract the ZIP archive to a directory of your choice. For example:

    C:\Tomcat9

    The extracted Tomcat directory will be referenced as <TOMCAT_INSTALL_DIR> throughout this section.

[Note]Note

JDK 8 can be used with all Tomcat versions listed above. Tomcat 8.5.x and 9.0.x can also run with later supported JDK versions.

2.5.1.2. Deploying the Application

  1. Open the <TOMCAT_INSTALL_DIR>\webapps\ directory.

  2. Copy the entire EspressChart installation directory into the webapps\ directory and name the copied directory EC.

  3. Click to view larger image

    Tomcat Web Application Deployment Directory

The EC directory name gives the application the /EC context. The application will be available at http://<your-server-ip>:8080/EC.

2.5.1.3. Configuring Tomcat

  1. Open the <TOMCAT_INSTALL_DIR>\bin\ directory.

  2. Create a file named setenv.bat if it does not already exist, or open the existing file in a text editor.

  3. Add the following lines:

    set "JAVA_HOME=<JDK_INSTALL_DIR>"
    set "CATALINA_HOME=<TOMCAT_INSTALL_DIR>"
    cd /d <EC_INSTALL_DIR>

    Replace <JDK_INSTALL_DIR> with the directory of the JDK used to run Tomcat.

    Replace <TOMCAT_INSTALL_DIR> with the Tomcat installation directory.

    Replace <EC_INSTALL_DIR> with the EspressChart installation directory.

    Click to view larger image

    Tomcat Configuration

The JAVA_HOME setting specifies the JDK used to start Tomcat. The CATALINA_HOME setting specifies the Tomcat installation directory.

The cd /d <EC_INSTALL_DIR> command sets the working directory to the EspressChart installation directory so that EspressChart can locate files referenced using relative paths.

2.5.1.4. Servlet Connection Settings

Make sure that the following servlet connection settings are present in <TOMCAT_INSTALL_DIR>\webapps\EC\EspressChart.jsp:

<param name="comm_protocol" value="servlet"/>
<param name="comm_url" value="<%=codebase%>"/>
<param name="servlet_context" value="servlet"/>

These settings are included in the default EspressChart 7.1 installation. If the values in your file differ, change them to the values shown above.

2.5.1.5. Starting Tomcat

  1. Open the <TOMCAT_INSTALL_DIR>\bin\ directory.

  2. Run catalina.bat with the run argument:

    catalina.bat run
  3. A console window opens and Tomcat starts. Leave this window open while Tomcat is running. Closing the window stops the server.

2.5.1.6. Starting EspressManager

To start EspressManager manually or check its status, open the following page in a browser:

http://<your-server-ip>:8080/EC/EspressManager.jsp

Click Start to start EspressManager. The same page can also be used to check its status or stop it.

2.5.1.7. Starting EspressChart

In a browser, open:

http://<your-server-ip>:8080/EC

The browser downloads the EspressChart JNLP file. Open the downloaded file and click Run when prompted to start Chart Designer.

Click to view larger image

Downloading the EspressChart JNLP File

2.5.2. Red Hat WildFly 25

The following instructions show how to install and configure Red Hat WildFly 25 and deploy EspressChart under WildFly. The location of the WildFly installation will be referenced as <WF_INSTALL_DIR> and the location of the EspressChart installation will be referenced as <EC_INSTALL_DIR>.

2.5.2.1. Installing WildFly

These instructions are written for Windows systems. Steps for other operating systems should be similar.

WildFly versions 23.x, 24.x, and 25.x are supported.

  1. Open the WildFly download page at https://www.wildfly.org/downloads/#25.0.0.Final.

  2. Locate the 25.0.0.Final release. Under EE 8 Full & Web Distribution, click the zip link to download the ZIP archive.

    Click to view larger image

    WildFly 25.0.0.Final Download

  3. After the download completes, extract the ZIP archive to a directory of your choice. For example:

    C:\wildfly-25.0.0.Final

    The extracted WildFly directory will be referenced as <WF_INSTALL_DIR> throughout this section.

2.5.2.2. Deploying the Application

  1. Open the <WF_INSTALL_DIR>\standalone\deployments directory.

  2. Copy the entire EspressChart installation directory into the deployments directory and rename the copied directory to EC.war.

  3. Create an empty file named EC.war.dodeploy in the deployments directory.

    Click to view larger image

    EspressChart WildFly Deployment Directory

[Note]Note

The empty EC.war.dodeploy file tells WildFly to deploy the application. Its name must be exactly EC.war.dodeploy. If Windows hides file name extensions, make sure that the file is not saved as EC.war.dodeploy.txt.

The EC.war directory name gives the application the /EC context. The application will be available at http://<your-server-ip>:8080/EC.

2.5.2.3. Configuring WildFly

  1. Open the following file in a text editor:

    <WF_INSTALL_DIR>\bin\standalone.conf.bat
  2. Near the beginning of the file, after the header comments and before the existing JAVA_OPTS configuration, add the following lines:

    set "JAVA_HOME=<JDK_INSTALL_DIR>"
    cd /d <EC_INSTALL_DIR>

    Replace <JDK_INSTALL_DIR> with the directory of the JDK used to run WildFly.

    Replace <EC_INSTALL_DIR> with the EspressChart installation directory.

    Click to view larger image

    WildFly Configuration

The JAVA_HOME setting specifies the JDK used to start WildFly.

The cd /d <EC_INSTALL_DIR> command sets the working directory to the EspressChart installation directory so that EspressChart can locate files referenced using relative paths.

2.5.2.3.1. Accessing WildFly from Another Computer

By default, WildFly listens only on the local interface. If the application will only be accessed from the computer on which WildFly is running, you can skip this section.

To make WildFly accessible from another computer, locate the following line in <WF_INSTALL_DIR>\bin\standalone.conf.bat:

set "JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true"

Immediately after this line, add:

set "JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=0.0.0.0"

This configures WildFly to listen for application connections on all network interfaces. Add this setting at this location rather than at the beginning of standalone.conf.bat so that WildFly's default JVM settings are retained.

[Note]Note

If a firewall is enabled on the server, make sure that inbound connections to the WildFly HTTP port, which is 8080 by default, are allowed.

2.5.2.4. Servlet Connection Settings

Make sure that the following servlet connection settings are present in <WF_INSTALL_DIR>\standalone\deployments\EC.war\EspressChart.jsp:

<param name="comm_protocol" value="servlet"/>
<param name="comm_url" value="<%=codebase%>"/>
<param name="servlet_context" value="servlet"/>

These settings are included in the default EspressChart 7.1 installation. If the values in your file differ, change them to the values shown above.

2.5.2.5. Starting WildFly

  1. Open the <WF_INSTALL_DIR>\bin directory.

  2. Run standalone.bat. A console window opens and WildFly starts. Leave this window open while WildFly is running. Closing the window stops the server.

After about a minute, the console displays a message indicating that EC.war has been deployed. The marker file in the standalone\deployments directory also changes from EC.war.dodeploy to EC.war.deployed. Either confirms that EspressChart was deployed successfully.

2.5.2.6. Starting EspressManager

EspressManager starts automatically the first time Chart Designer connects, so you do not need to start it separately. To start EspressManager manually or check its status, open the following page in a browser:

http://<your-server-ip>:8080/EC/EspressManager.jsp

Click Start if you want to start EspressManager explicitly. The same page can also be used to check its status or stop it.

2.5.2.7. Starting EspressChart

In a browser, open:

http://<your-server-ip>:8080/EC

The browser downloads the EspressChart JNLP file. Open the downloaded file and click Run when prompted to start Chart Designer.

2.5.3. Oracle WebLogic Server 14.1.1.0

The following instructions show how to install and configure Oracle WebLogic Server 14.1.1.0 and deploy EspressChart under WebLogic. The location of the WebLogic installation will be referenced as <WL_INSTALL_DIR>, the location of the WebLogic domain will be referenced as <WL_DOMAIN_DIR>, and the location of the EspressChart installation will be referenced as <EC_INSTALL_DIR>.

2.5.3.1. Installing WebLogic

These instructions are written for Windows systems. Steps for other operating systems should be similar.

  1. Open the Oracle WebLogic Server 14.1.1.0 download page and locate Generic Installer for Oracle WebLogic Server and Oracle Coherence.

  2. Click Generic to download the installer package.

    Click to view larger image

    Oracle WebLogic Server 14.1.1.0 Generic Installer Download

  3. After the download completes, extract the ZIP archive to a directory of your choice. The downloaded archive and installer JAR filenames may vary. For example:

    fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip

    The extracted archive contains the WebLogic installer JAR. For example:

    fmw_14.1.1.0.0_wls_lite_generic.jar
  4. Open Command Prompt as an administrator and change to the directory containing the installer JAR. For example:

    cd /d C:\WebLogic14Installer
  5. Run the installer JAR using an Oracle JDK:

    "<JDK_INSTALL_DIR>\bin\java.exe" -jar fmw_14.1.1.0.0_wls_lite_generic.jar
    [Note]Note

    The WebLogic installer requires an Oracle JDK. OpenJDK and Amazon Corretto are not accepted by the installer. After WebLogic has been installed, JDK 8 or JDK 11 can be used to run WebLogic.

  6. On the Installation Location screen, select the directory in which to install WebLogic. This directory will be referenced as <WL_INSTALL_DIR> throughout this section.

    Click to view larger image

    WebLogic Installation Location

  7. On the Installation Type screen, select WebLogic Server and click Next.

    Click to view larger image

    WebLogic Installation Type

  8. Continue through the remaining installer screens using the default settings and install WebLogic.

  9. When the installation completes, leave Automatically Launch the Configuration Wizard selected and click Finish.

    Click to view larger image

    WebLogic Installation Complete

2.5.3.1.1. Configuring the WebLogic Domain

In the Configuration Wizard, create a new WebLogic domain and use the default settings unless otherwise noted. The domain directory will be referenced as <WL_DOMAIN_DIR> throughout this section.

  1. On the Administrator Account screen, enter the WebLogic administrator user name and password. The default administrator user name is typically weblogic. Record the credentials because they are required later to access the WebLogic Administration Console.

    Click to view larger image

    WebLogic Administrator Account

  2. Continue through the remaining Configuration Wizard screens using the default settings and create the domain.

2.5.3.2. Deploying the Application

  1. Open the <WL_DOMAIN_DIR>\autodeploy\ directory.

  2. Copy the entire EspressChart installation directory into the autodeploy\ directory and name the copied directory EC.

  3. Click to view larger image

    WebLogic Autodeploy Directory

The EC directory name gives the application the /EC context. The application will be available at http://<your-server-ip>:7001/EC.

2.5.3.3. Configuring Runtime Resources

WebLogic uses the domain directory as the JVM working directory. Runtime resources that EspressChart or EspressReport accesses using relative paths must therefore be copied into the domain directory.

  1. Open the <WL_DOMAIN_DIR>\ directory.

  2. Copy the userdb\ directory from <EC_INSTALL_DIR> into <WL_DOMAIN_DIR>\ if it is present.

  3. Copy the DataRegistry\ directory from <EC_INSTALL_DIR> into <WL_DOMAIN_DIR>\ if it is present.

2.5.3.4. Configuring WebLogic

  1. Open the following file in a text editor:

    <WL_DOMAIN_DIR>\bin\setDomainEnv.cmd
  2. At the bottom of the file, add the application directory to the WebLogic classpath:

    set CLASSPATH=%CLASSPATH%;<WL_DOMAIN_DIR>\autodeploy\EC

    Replace <WL_DOMAIN_DIR> with the WebLogic domain directory.

    Click to view larger image

    WebLogic Configuration

  3. Locate the following line:

    set JAVA_HOME=%JAVA_HOME%

    Immediately above it, add:

    set JAVA_HOME=<JDK_INSTALL_DIR>

    Replace <JDK_INSTALL_DIR> with the directory of the JDK used to run WebLogic.

  4. Locate:

    set PRODUCTION_MODE=

    and change it to:

    set PRODUCTION_MODE=false

The JAVA_HOME setting specifies the JDK used to start WebLogic. Setting PRODUCTION_MODE to false allows applications in the autodeploy\ directory to be deployed automatically.

2.5.3.5. Servlet Connection Settings

Make sure that the following servlet connection settings are present in <WL_DOMAIN_DIR>\autodeploy\EC\EspressChart.jsp:

<param name="comm_protocol" value="servlet"/>
<param name="comm_url" value="<%=codebase%>"/>
<param name="servlet_context" value="servlet"/>

These settings are included in the default EspressChart 7.1 installation. If the values in your file differ, change them to the values shown above.

2.5.3.6. Starting WebLogic

  1. Open the <WL_DOMAIN_DIR>\bin\ directory.

  2. Run startWebLogic.cmd. A console window opens and WebLogic starts. Leave this window open while WebLogic is running. Closing the window stops the server.

  3. After WebLogic starts, open the following page in a browser:

    http://<your-server-ip>:7001/console

    Log in using the administrator user name and password created during domain configuration.

    Click to view larger image

    WebLogic Administration Console Login

  4. In the WebLogic Administration Console, click Deployments and verify that the application was deployed successfully.

    Click to view larger image

    Successful Application Deployment under WebLogic

The EspressChart deployment should be listed as Active with a health status of OK.

2.5.3.7. Starting EspressManager

To start EspressManager manually or check its status, open the following page in a browser:

http://<your-server-ip>:7001/EC/EspressManager.jsp

Click Start to start EspressManager. The same page can also be used to check its status or stop it.

Click to view larger image

EspressManager Monitor

2.5.3.8. Starting EspressChart

In a browser, open:

http://<your-server-ip>:7001/EC

The browser downloads the EspressChart JNLP file. Open the downloaded file and click Run when prompted to start Chart Designer.

2.5.4. IBM WebSphere Liberty / Open Liberty

Open Liberty is the open-source upstream of IBM WebSphere Liberty and uses the same runtime engine. The following instructions apply to both.

The following instructions show how to install and configure Liberty and deploy EspressChart. The location of the Liberty installation will be referenced as <LIBERTY_INSTALL_DIR> and the location of the EspressChart installation will be referenced as <EC_INSTALL_DIR>.

2.5.4.1. Installing Liberty

These instructions are written for Windows systems. Steps for other operating systems should be similar.

  1. Open the Open Liberty download page at https://openliberty.io/downloads/.

  2. Download the Java EE 8 compatible Full Platform package. On current Open Liberty download pages, this package is listed as Jakarta EE 8.

    Click to view larger image

    Open Liberty Jakarta EE 8 Package Download

  3. Extract the ZIP archive to a directory of your choice. The extracted Liberty directory will be referenced as <LIBERTY_INSTALL_DIR> throughout this section.

  4. Open a Command Prompt window and create the defaultServer server:

    <LIBERTY_INSTALL_DIR>\bin\server.bat create defaultServer

2.5.4.2. Configuring Liberty

  1. Open <LIBERTY_INSTALL_DIR>\usr\servers\defaultServer\server.xml in a text editor.

  2. Configure the Java EE 8 feature, HTTP ports, and automatic application expansion as follows:

    <server>
    	<featureManager>
    		<feature>javaee-8.0</feature>
    	</featureManager>
    	<httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443"/>
    	<applicationManager autoExpand="true"/>
    </server>
    Click to view larger image

    Open Liberty Server Configuration

  3. Create <LIBERTY_INSTALL_DIR>\usr\servers\defaultServer\server.env if it does not already exist, or open the existing file in a text editor.

  4. Add the following line:

    JAVA_HOME=<JDK_INSTALL_DIR>

    Replace <JDK_INSTALL_DIR> with the directory of the JDK used to run Liberty.

[Note]Note

Values in server.env cannot contain spaces. If the JDK is installed in a directory whose path contains spaces, use an equivalent Java installation path that does not contain spaces for JAVA_HOME.

[Note]Note

Use the javaee-8.0 feature. Liberty configurations that use Jakarta EE 9 or later features are not supported because these features use the jakarta.servlet namespace instead of javax.servlet.

2.5.4.3. Deploying the Application

  1. Open the <LIBERTY_INSTALL_DIR>\usr\servers\defaultServer\dropins\ directory.

  2. Copy the entire EspressChart installation directory into the dropins\ directory and rename the copied directory to EC.war.

  3. Click to view larger image

    Liberty Application Deployment Directory

The EC.war directory name gives the application the /EC context. The application will be available at http://<your-server-ip>:9080/EC.

2.5.4.4. Configuring Runtime Resources

Liberty uses the server directory as the JVM working directory. Runtime resources that EspressChart or EspressReport accesses using relative paths must therefore be copied into the server directory.

  1. Open <LIBERTY_INSTALL_DIR>\usr\servers\defaultServer\.

  2. Copy the userdb\ directory from <EC_INSTALL_DIR> into the Liberty server directory if it is present.

  3. Copy the DataRegistry\ directory from <EC_INSTALL_DIR> into the Liberty server directory if it is present.

2.5.4.5. Servlet Connection Settings

Make sure that the following servlet connection settings are present in <LIBERTY_INSTALL_DIR>\usr\servers\defaultServer\dropins\EC.war\EspressChart.jsp:

<param name="comm_protocol" value="servlet"/>
<param name="comm_url" value="<%=codebase%>"/>
<param name="servlet_context" value="servlet"/>

These settings are included in the default EspressChart 7.1 installation. If the values in your file differ, change them to the values shown above.

2.5.4.6. Starting Liberty

  1. Open the <LIBERTY_INSTALL_DIR>\bin\ directory.

  2. Run server.bat with the following arguments:

    server.bat run defaultServer
  3. A console window opens and Liberty starts. Leave this window open while Liberty is running. Closing the window stops the server.

When deployment succeeds, Liberty reports that the EC application has started and makes the web application available at http://localhost:9080/EC/.

2.5.4.7. Starting EspressManager

To start EspressManager manually or check its status, open the following page in a browser:

http://<your-server-ip>:9080/EC/EspressManager.jsp

Click Start to start EspressManager. The same page can also be used to check its status or stop it.

Click to view larger image

EspressManager Monitor

2.5.4.8. Starting EspressChart

In a browser, open:

http://<your-server-ip>:9080/EC

The browser downloads the EspressChart JNLP file. Open the downloaded file and click Run when prompted to start Chart Designer.

Click to view larger image

Downloading the EspressChart JNLP File

2.5.5. Not Supported: Jakarta EE 9 and Later

EspressChart 7.1 and EspressReport 7.1 use the javax.servlet namespace. Application server versions that use the jakarta.servlet namespace are not compatible without a product-level migration.

The following application server versions are not supported:

  • Apache Tomcat 10 and later

  • Red Hat WildFly 26 and later

  • IBM WebSphere Liberty / Open Liberty 23 and later when using Jakarta EE 9 or later features

  • Oracle WebLogic Server 14.1.2 and later

  • Eclipse GlassFish 6 and later, Payara Server 6 and later, and Eclipse Jetty 11 and later