How To Install Openbravo ERP On Ubuntu 8.10

Version 1.0
Author: Falko Timme
Last edited 01/07/2009

This document describes how to set up Openbravo ERP (enterprise management system) on Ubuntu 8.10. Openbravo is an open source ERP solution designed specifically for the SME (small to midsize firm). Developed in a web based environment, it includes many robust functionalities which are considered part of the extended ERP: procurement and warehouse management, project and service management, production management, and financial management.

A list of Openbravo ERP features can be found on

I do not issue any guarantee that this will work for you!


1 Preliminary Note

In this tutorial I use the hostname with the IP address These settings might differ for you, so you have to replace them where appropriate.

Make sure that you are logged in as root (type in

sudo su

to become root), because we must run all the steps from this tutorial as root user.


2 Installing Openbravo Dependencies

2.1 PostgreSQL

Install PostgreSQL:

apt-get install postgresql-8.3

Afterwards we have to set the PostgreSQL admin password:

sed -i 's/ident sameuser$/trust/' /etc/postgresql/8.3/main/pg_hba.conf
/etc/init.d/postgresql-8.3 restart

Open a PostgreSQL shell...

psql -U postgres

... and set the password:

alter role postgres with password 'yourrootsqlpassword';

(Replace yourrootsqlpassword with a password of your choice.)

sed -i 's/trust$/md5/' /etc/postgresql/8.3/main/pg_hba.conf
/etc/init.d/postgresql-8.3 reload


2.2 Java JDK

Install the Java JDK as follows:

apt-get install sun-java6-jdk

Afterwards make it available systemwide:

update-java-alternatives -s java-6-sun
echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment

After that log out and in again for the changes to take effect.

After you've logged in again, don't forget to become root again:

sudo su


2.3 Apache Tomcat

Install Tomcat as follows:

apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

Afterwards we have to configure it:

vi /etc/init.d/tomcat5.5

Change TOMCAT5_SECURITY from yes to no:

# Use the Java security manager? (yes/no)

Restart Tomcat:

/etc/init.d/tomcat5.5 restart

Now let's look if all went well:

netstat -tap | grep jsvc

Tomcat should be listening on port 8180:

root@server1:~# netstat -tap | grep jsvc
tcp6       0      0 [::]:8009               [::]:*                  LISTEN      7865/jsvc
tcp6       0      0 [::]:8180               [::]:*                  LISTEN      7865/jsvc

Next we need to set a few environment variables:

echo 'CATALINA_HOME="/usr/share/tomcat5.5"' | tee -a /etc/environment
echo 'CATALINA_BASE="/var/lib/tomcat5.5"' | tee -a /etc/environment
echo 'CATALINA_OPTS="-server -Xms384M -Xmx512M"' | tee -a /etc/environment

After that log out and in again for the changes to take effect.

After you've logged in again, don't forget to become root again:

sudo su


2.4 Apache Ant

Apache ant has already been installed as dependency in the previous step - so all we have to do is set another environment variable:

echo 'ANT_HOME="/usr/share/ant"' | tee -a /etc/environment

After that log out and in again for the changes to take effect.

After you've logged in again, don't forget to become root again:

sudo su

Share this page:

10 Comment(s)

Add comment


From: Carlos Gonzalez at: 2009-04-01 18:54:46

Hi, I installed Open bravo sucessfully !!!  it takes a while for the installer to complete its task... I installed it on a PIII @ 933mhz 512Mb Clone it took about one and a half hour, the status bar reaches 100% in a few minutes,... but then it begins to populate the DB with example data....

 Only issue was when installing the JAVA I had to uncomment some lines on the /etc/apt/sources.list file and update the apt by issuing sudo apt-get update in order to install java directly from the ubuntu repository

 Also had to download the Openbravo installer from another URL (on sourceforge) on another PC and tranfer it to my ubuntu server via ftp (had to install proftpd)

 The rest was ok... thank you!

From: Ilyass at: 2009-03-24 12:08:46


I tried to install openbravo ERP on Ubuntu 8.10, but when I introduce the command ./OpenbravoERP_2.40-linux-installer.bin a warnig message shows up telling that :

Failed to load module: /usr/lib/gio/modules/
/usr/lib/gio/modules/ wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/
/usr/lib/gio/modules/ wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/

I ignored this message and I continued the installation but when it almost finished a warning message appears again telling that   :

Problem running post-install step. Installation may not complete correctly
 Error running /usr/share/ant/bin/ant compile -Dtab=xx war -logfile /opt/OpenbravoERP/installation_logs/04war.log : child process exited abnormally

And the file openbravo.war did not exist neither in /var/lib/tomcat5.5/webapps nor /opt/OpenbravoERP/Appsopenbravo/lib

 Can somebody help me please? 

From: at: 2009-03-25 00:53:21

I got though all the way to ./OpenbravoERP_2.40-linux-installer.bin and it just does NOTHING, no install start nothing .. no output of any kind.



From: Technology247365 at: 2009-06-19 04:39:40

I installed successfully using installation instructions, did you change directory cd /temp and make executable

1. cd /tmp/ wget (Download)

2. Then you need to make executable: sudo chmod +x OpenbravoERP_2.40-linux-installer.bin

3. Then try: ./OpenbravoERP_2.40-linux-installer.bin

From: Confuse at: 2009-03-02 15:37:30

My installation did not complete 

 0% ______________ 50% ______________ 100%


No confirmation "Setup has finished installing Openbravo ERP on your computer."

And web site is also not working.

I have installed it twice

both time same problem 


From: Anonymous at: 2009-03-18 07:43:09

when you reach 100% it is only 100% of the 'unpacking installation files'

 Wait 10 to 20 minutes (depending if you fill the database with demo data) and normally the installation should finish...

From: Matt at: 2009-06-28 11:30:59

After de loggin I have this error in Tomcat:

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


javax.servlet.ServletException: @CODE=@There are no connections available in jdbc:apache:commons:dbcp:openbravo_myPool
org.openbravo.base.secureApp.SeguridadData.valido(Unknown Source)
org.openbravo.base.secureApp.LoginHandler.doPost(Unknown Source)
org.openbravo.base.HttpBaseServlet.service(Unknown Source)
org.openbravo.utils.SessionExpirationFilter.doFilter(Unknown Source)
org.openbravo.utils.CharsetFilter.doFilter(Unknown Source)

Why I can't connect to the database?

From: vijay thurimella at: 2009-09-16 10:08:35

I am geting the same issue on postgresql 8.4 on windows xp

From: Anonymous at: 2010-03-25 19:14:52

Entiendo que la versión del ERP es la 2.40, según lo expuesto y el mensaje de error tienes un problema entre el tomcat y la base de datos. El tomcat es el encargado de conectar los dos mundos del ERP para que funcione openbravo. Yo te recomiendo que bajes la versión del tomcat a la 5.5 esa es muy fiable y personalmente he trabajado con ella y me ha funcionado en todas las instalaciones, la versión 6 del tomcat es muy nueva y ha sido reescrito entero, creo que debe de existir alguna incompatibilidad entre el ant, tomcat y oracle en las versiones que estás utilizando.

From: zaien at: 2011-05-16 01:56:09

other openbravo installation tutorial: