ADempiere
ADempiere.netCommunity ChatWiki
develop
develop
  • ADempiere Documentation
  • About this Documentation
    • Copyright
    • Conventions Used
    • Contributors
    • Version Control
    • Getting Involved in the ADempiere Project
    • GNU Free Documentation License
  • Glossary
  • User Guide
    • Getting Started
      • About the Application
      • Launching the Application
      • Logging In
      • Finding Your Way Around the Java Client
        • The Application Menu
        • The Performance Dashboard
        • The Menu (Home) Tab
      • Finding Your Way Around the Web App
        • The Dashboard
      • Opening and Using Windows
        • The Tool Bar
        • Shortcut Keys
      • Entering Data - Fields and Buttons
        • Account Field
        • Assignment Field
        • Binary Data Field
        • Button Field
        • Color Field
        • Date Field
        • Date + Time Field
        • Untitled
        • Number Field
      • Dialogs and Forms
        • Account Dialog
        • Change Log or Record Info
        • Calculator Tool
        • Calendar Tool
        • Payment Dialog
      • Key Concepts
      • Workflow Activities
      • Workflow
      • Windows and Tabs
      • Reports and Processes
    • Garden World Demonstration Client
    • Untitled
    • System Administration
      • General Rules
        • System Rules
        • Security
          • Defining Users and Contacts
          • Roles and Managing Data Access
            • Dashboard Access
            • Role Access Update
        • Server
          • EMail Configuration
      • Managing the Client
        • Configuring the Client Password Reset
      • Managing Organizations
        • Document Status Indicators
      • Data
        • Data Import
    • Partner Relations
    • Revenue Recognition
    • Open Items
      • Dunning
    • Products & Material Management
      • Product Setup
        • Warehouse & Locators
        • Units of Measure
        • Asset Groups
        • Product Categories
        • Product Classifications, Classes and Groups
        • Product Attributes, Sets and Instances
          • Example - Using Product Attributes
        • Defining the Product
          • Product Types
          • Basic Product Setup
          • Product Bill of Materials
            • BOM Components
      • BOM Drop
    • Accounting & Performance Analysis
      • An Overview of Accounting in ADempiere
      • Accounting Setup
      • Calendar, Year and Periods
      • Tax Setup
      • Performance Measurement Setup
    • Assets and Asset Management
    • Manufacturing
      • Engineering Change Management
      • Product Configuration
      • Forecasting
    • Warehouse Management System
  • System Administration
    • Installation
      • System Requirements
      • Install ADempiere easily with Docker
      • Installing ADempiere Manually
        • Database Server Installation & Setup
        • Application Server Installation and Setup
        • Initialize the Database
        • Launch the Application Server
      • Securing Your ADempiere Installation
    • Upgrading and Migration
    • Database Maintenance
      • Database Backup and Restore
    • The Application Dictionary
      • Synchronize Changes with the Database
  • Developer Guide
    • Becoming a Developer
    • Software Development Procedure
    • ADempiere Version Control
    • ADempiere Best Practices
    • Development Environments
      • Creating WebUI Workspace using Eclipse Webtool
      • Customization Environment
Powered by GitBook
On this page
  • Prerequisites
  • Run the Server as a Stand-Alone Process
  • As a Service on Windows Operating Systems
  • As a Service on Linux
  • Using nohup on Linux Systems
  • Trouble Shooting
  1. System Administration
  2. Installation
  3. Installing ADempiere Manually

Launch the Application Server

PreviousInitialize the DatabaseNextSecuring Your ADempiere Installation

Last updated 5 years ago

Prerequisites

Before launching the Application Server, you should already have completed:

If the above are completed, you can start the JBoss-based ADempiere Application Server. For demonstrations, its fine to launch the server from a console. For production systems, its best to use a method that will keep the server running after the user has logged off.

Run the Server as a Stand-Alone Process

To run the ADempiere Server from a console, open up a console window and go to the ADEMPIERE_HOME/utils directory. Run the script RUN_Server2[.bat|.sh] . Then you will see the RUN_Server2 output, such as:

If the server started with no errors, you can move on to .

As a Service on Windows Operating Systems

For windows operating systems, the ADempiere Application Server can be installed as a service and scripts are provided for this purpose. Open a DOS shell with Administrative Privileges, navigate to %ADEMPIERE_HOME%\utils\windows and run:

  • Adempiere_Service_Install.bat for 32-bit systems; or

  • Adempiere_Service_Install_64.bat for 64-bit systems (since 380LTS hotfix 2).

The install sets the start-up options as manual. You will need to open the Services Window (Control Panel→Administrative Tools→Services) to set the properties so the service starts automatically or manually as required for your implmentation.

(Since 380LTS hotfix 2) On 64-bit systems, the service will log the full console output to ADEMPIERE_HOME\jboss\bin\run.log. As a result, run.log may get large over time. To prevent this, comment out the CONSOLE appender-ref in the ADEMPIERE_HOME\jboss\server\adempiere\conf\jboss-log4j.xml file:

<root>
     <appender-ref ref="CONSOLE"/>
     <appender-ref ref="FILE"/>
</root>

As a Service on Linux

ADempiere can be setup a service on Ubuntu using systemd.

Create a file called "adempiere.service" under the /lib/systemd/system/ directory

[Unit] Description=Task that runs the ADempiere ERP Service After=network.target After=systemd-user-sessions.service After=network-online.target
[Service] Environment=ADEMPIERE_HOME=/opt/Adempiere Type=forking ExecStart=/opt/Adempiere/utils/RUN_Server2.sh ExecStop=/opt/Adempiere/utils/RUN_Server2Stop.sh TimeoutSec=30 Restart=on-failure RestartSec=30 StartLimitInterval=350 StartLimitBurst=10
[Install] WantedBy=multi-user.target

With the service defined, you can run the following commands to control it. You will need to run these as root or using sudo

Command

Purpose

systemctl daemon-reload

Loads the new service

systemctl start adempiere

Starts the ADempiere service.

service adempiere status

Show the status of the ADempiere service

systemctl enable adempiere

Enable the ADempiere service to it will restart on the next reboot/restart event.

systemctl stop adempiere

Stop the ADempiere service

systemctl disable adempiere

Turns the ADempiere service off at the next reboot/restart event. Prevents the ADempiere service from restarting.

systemctl is-enabled adempiere

Use this to check if the service is currently configured to start or not on the next reboot.

The systemd script may fail if the memory runs out. When the heap is full for some reason, the stop script will fail. In that case, try kill -9 using the service PID, wait for a few seconds then start the service again. System Administrators should add a health check to handle this condition.

Using nohup on Linux Systems

For other operating systems, check ADEMPIERE_HOME/utils/unix or use the Linux nohup command (no hangup) as follows:

nohup ./RUN_Server2.sh &

To see the output of the server, use

cat nohup.out | more

or

tail nohup.out

Trouble Shooting

Check the logs for errors.

For JBoss, the logs are located at ADEMPIERE_HOME/jboss/server/adempiere/logs or ADEMPIERE_HOME/jboss/bin.

For Tomcat, you will find them in ADEMPIERE_HOME/tomcat/log/Catalina.out.

The most common problems are with ports that are already in use. Typical conflicting ports are:

  • HTTP: 80, 443, 8080, 8443

  • RMI : 1098, 1099

For Linux users, sometimes it helps to restart the workstation/server and execute RUN_Server2 as root.

Any port conflict when starting the Application Server must be resolved!

If you have errors related to the database, check that the database has been installed, ADempiere data imported and that the database server is running.

Once the Service is running, you can move on to .

If the server started with no errors, you can move on to .

(Thanks to and for their contribution.)

If the server started with no errors, you can move on to .

Launching the ADempiere Application
Launching the ADempiere Application
@pmdw
Horacio Miranda @piracio
Launching the ADempiere Application
Database Server Installation & Setup
Application Server Installation & Setup
Initialize the ADempiere Database
Launching the ADempiere Application