Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Running Elastic Path Applications

Running Elastic Path Applications

Elastic Path has two webapps Cortex, which is Elastic Path's Hypermedia API and Commerce Manager which is a user interface for managing stores and inventories.

In development, the webapps and servers are used to test the business logic of Elastic Path Commerce and any extensions you have added.

All webapps and application servers are run from the extensions module and thus require all other Elastic Path source code to be built before starting the webapps.

Elastic Path Webapps

The Cortex and Commerce Manager webapps depend on the Elastic Path application servers to start up and access all functionalities. However, they can be started with a minimum set of servers if all functionalities are not required.

Cortex

You must start Cortex and its dependencies to test the development tasks. By default, Cortex starts on port 9080.

Prerequisites

Ensure that the following servers are started:

  • JMS Server
  • Search Server

Elastic Path recommends starting the following server, however this server is optional:

  • Integration Server: Enables sending emails and Camel messages.

When you start Cortex for the first time, you must do the following:

  1. In the command line, navigate to the extensions/database module.
  2. Run the following command:
    mvn clean install -Preset-conf

With this command, the system deletes your current local home directory's configuration files, if any, and copies the default Cortex and Ehcache configuration files from the database/ext-data/environments/local/ directory to the ${user.home}/ep/conf/ directory in your file system.. For more information, see Cortex Configuration Files.

Running Cortex

  1. In the command line, navigate to the extensions/cortex/ext-cortex-webapp module.
  2. Run the following command:
    mvn clean tomcat7:run-war

You can access Cortex Studio at http://localhost:9080/studio/ .

Commerce Manager

By default, Commerce Manager starts on port 8081.

Prerequisites

Commerce Manager can start without any supporting application servers. Elastic Path recommends the following application servers, however this server is optional:
  • Search Server

Running Commerce Manager

  1. In the command line, navigate to the extensions/cm/ext-cm-modules/ext-cm-webapp-runner module.
  2. Run the following command:
    mvn clean tomcat7:run-war

You can sign in to the Commerce Manager at http://localhost:8081/cm/.

The default user name and password are:

User ID Password

admin

111111

Elastic Path Application Servers

Elastic Path webapps require the following application servers to be started before they are launched. As a general rule for development, only start the application servers needed for the functionality you are testing.

Batch Server

The Batch Sever is used for scheduled Quartz jobs . and is only needed in production environments. For more information, see Elastic Path Quartz Jobs. By default, the Batch Server starts on port 8084.

To run the Batch Server:

  1. In the command line, navigate to the extensions/batch/ext-batch-webapp module.
  2. Run the following command:
    mvn clean tomcat7:run-war

After starting the Batch server, you can check the status of the Server at http://localhost:8084/batch/status.

Integration Server

The Integration Server is used for any functionality that needs email delivery or messaging on Apache Camel routes. For more information, see Integration Server. By default, the Integration Server starts on port 8083.

To run the Integration Server:

  1. In the command line, navigate to the extensions/integration/ext-integration-webapp module.
  2. Run the following command:
    mvn clean tomcat7:run-war

After starting the integration server, you can check the status of the Server at http://localhost:8083/integration/status.

JMS Server

The JMS Server is used when making purchases.

To run the JMS Server:

  1. In the command line, navigate to the extensions/activemq-broker module.
  2. Run the following command:
    mvn clean tomcat7:run-war

After starting the JMS server, you can access the Server at http://localhost:8161/admin.

Search Server

The Search Server is used for all search-related functionalities. For more information, see Search Server. By default, the Search Server starts on port 8082.

To run the Search Server:

  1. In the command line, navigate to the extensions/search/ext-search-webapp module.
  2. Run the following command:
    mvn clean tomcat7:run-war
After starting the Search server, you can check the status of the Server at http://localhost:8082/search/status.