Change a Running Oracle APEX ORDS to Apache Tomcat on Windows

In this tutorial, I will guide you through the process of transitioning from an existing Oracle APEX ORDS installation to Apache Tomcat on Windows. I will explain the installation process step by step, including setting up Java files and installing the necessary software. By the end, you will have Apache Tomcat running on a new port, ready for use.

1. Prerequisites

Before we begin, make sure you have downloaded the following software components:

1.1 Java

1.2 XAMPP

2. Software Installation

2.1 Installing Java

  • Download the Java JDK and JRE from the links provided above.
  • Install the Java JDK and JRE on your system.

2.2 Installing XAMPP

  • Download XAMPP from the link provided above.
  • Install XAMPP on your system.

3. Installing and Configuring Apache Tomcat

3.1 Install Apache Tomcat

  • Download Apache Tomcat from the official website.
  • Install Apache Tomcat on your system.
  • During installation, you can change the port to 8181 to avoid conflicts with other services.

3.2 Open the Webapps Directory

  • Navigate to the installation directory of Apache Tomcat.
  • Open the webapps directory.

3.3 Move Images and ORDS

  • Move the images folder from Oracle APEX into the webapps directory and rename it to i.
  • Copy the ords.war file into the webapps directory and rename it if needed, e.g., to apexnote.

3.4 Start Apache Tomcat

  • Start the Apache Tomcat service.
  • Open your browser and navigate to localhost:8181/apexnote.

4. Setting Up Environment Variables

4.1 Create Environment Variables

To ensure all necessary paths are correctly set, we need to create some environment variables.

4.2 Set Environment Variables Before Installing APEX

User Environment Variables:

  • JAVA_HOME=C:\Program Files\Java\jdk-22
  • ORDS_CONFIG=C:\ords\config
These variables set the path to the Java JDK and the ORDS configuration.

System Environment Variables:

  • path → C:\Program Files\Java\jdk-22
  • path → C:\Program Files\Java
  • path → C:\Program Files\Java\jdk-22\bin
  • JAVA_TOOL_OPTIONS=-Dconfig.url=C:\ords\config
These variables set various paths for the Java JDK and additional Java options, here the configuration URL for ORDS.

5. Final Steps

  • Restart Apache Tomcat.
  • Open your browser and navigate to localhost:8181/apexnote.
By following these steps, you should be able to successfully transition from Oracle APEX ORDS to Apache Tomcat on Windows. If you have any questions or encounter any issues, feel free to reach out for assistance.

 {fullWidth}

0 $type={blogger}:

Kommentar veröffentlichen