Log in / create account
View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solution Alliance

Openbravo ERP installation

Rating :
5.00/5
(1 votes cast)
You have to be registered to be able to vote

Contents

Introduction

This article explains how to install Openbravo ERP. Before getting started, please make sure that you properly installed Openbravo environment, i.e.:

Important note: if you are looking for a quick way of evaluating and testing Openbravo ERP capabilities, you may consider browsing Openbravo ERP on-line demo or downloading Openbravo ERP virtual appliances.

Openbravo ERP can be installed in two different ways:

License

Openbravo ERP is licensed under the Openbravo Public License Version 1.1:

The contents of this file are subject to the Openbravo Public License Version 1.1 (the "License"), being the Mozilla Public License version 1.1 with a permitted attribution clause; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.openbravo.com/product/legal/license/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The Original Code is Openbravo ERP. The Initial Developer of the Original Code is Openbravo SL. All portions are Copyright (C) 2001-2008 Openbravo SL. All Rights Reserved.

Subversion source code

To be able to check out Openbravo ERP source code from Openbravo Subversion repository you need to install Subversion (SVN) version control system client.

Once Subversion client is installed, move to the directory where you want to check out last stable source code tag and type in command line:

svn co https://dev.openbravo.com/svn/openbravo/tags/r2.35mp5 openbravo-235mp5

Move to openbravo-235mp5 folder and configure build.xml, Openbravo.properties, XmlPool.xml and dbCon5.xml files using an assistant (wizard) by typing in command line:

ant -f build.xml.template setup

Before starting with compilation, please check that build.xml (inside root directory) and Openbravo.properties, XmlPool.xml and dbCon5.xml (inside config folder) have been properly configured. If not, edit them manually.

Create database from *.xml files and install Openbravo ERP in a single step by typing in command line:

ant install.source

Finally, deploy openbravo.war file to Apache Tomcat context folder (usually webapps) by typing in command line:

ant deploy

Bitrock installer

Download the latest Openbravo ERP Installer.

chmod +x OpenbravoERP_2.35MP5-linux-installer.bin
./OpenbravoERP_2.35MP5-linux-installer.bin

An installation assistant (wizard) pops-up:

Read and accept Openbravo Public License Version 1.1 before proceeding with the installation process. By clicking on Forward button the terms and conditions of this license are agreed.

Indicate the directory where Openbravo ERP is going to be installed. After clicking on Forward button, select also the directory for attachments.

Then choose the installation type:

The Complete installation, offers two modes:

Provide the directory where Java Development Kit (JDK) is installed (if the JDK has been properly installed, installation directory should be recognized automatically).

Provide the full path of the Apache Ant binary (if Apache Ant has been properly installed, the binary path should be recognized automatically).

Provide the directory where Apache Tomcat is installed (if Apache Tomcat has been properly installed, installation directory should be recognized automatically).

Indicate which database you want to use. Currently, Oracle and PostgreSQL are supported.

Provide the full path of the database binaries. These binaries are psql, vacuumdb and pg_restore in PostgreSQL, and imp, sqlplus in Oracle's case.

Provide database parameters that allow the installer to connect with the database. Your database must be running during this step since database credentials are verified. The following parameters are required:

After clicking on Forward button, if using an Oracle database, SID (Oracle System Identifier) and TNS (Transparent Network Substrate) will be required.

In the next window, if using PostgreSQL database, type twice the password for the postgres administrator user. If using Oracle database type twice the password for the system user. Actually, Openbravo ERP requires administrator privileges to create database elements.

If using PostgreSQL, specify the name of the database that will hold Openbravo ERP data model.. Then type database username and password that will contain Openbravo ERP database objects.

Give a context name to your application. This will be used to access Openbravo ERP through Tomcat: http://<ip_address>:<port>/<context_name>

Next, select the preferred date and time format:

Finally, choose between having demo data (BigBazaar) or not:

Click Forward twice to go ahead with Openbravo ERP installation. This process may take 10-30 minutes for the Standard mode and 30-90 minutes for the Development mode, depending on the processing capabilities of the machine where Openbravo ERP is being installed.

Running Openbravo ERP

In both cases, stop and start Tomcat service to finish installation process.

At this point, you should have inside Apache Tomcat webapps folder:

If this is not the case:

Access Openbravo ERP via your web browser by typing the exact context URL. Check that your_context_name folder has been created inside Apache Tomcat webapps folder.

Important notes:
  • Error HTTP Status 404 - File not found page instead of Login page reveals a problem with context name.

For both cases, please make sure that you correctly typed context URL. Find it in build.xml file inside the application directory.

Type Openbravo in Username text box and openbravo in Password text box then click on Login button.

Congratulations! You are done with Openbravo ERP installation :-)

Important note: please notice that first log in is done with System Administrator role so you will not be able to see business options (message AccessTableNoView will display instead) but only administration tasks. In order to access business partners, products, sales and procurement orders and so on, change your role to BigBazaar Admin (or Openbravo Admin) by clicking on Openbravo link (left up) image:ChangeRole1.png and selecting it in Role infomation pop-up window. You can also set this role as default by checking Set as default check box.

Configurations after installation

After Openbravo ERP is properly installed and running, there are a few parameters that you can customize to adapt better Openbravo ERP to your country or region.

Installing a translation

It is always more fun to get Openbravo ERP translated into your language :)

Configuring the default date and time formats

To change the default Openbravo ERP date format edit the Openbravo.properties file and adjust the Time formats variables.

If you are using Oracle, edit the XmlPool.xml file and assign the dbSessionConfig variable to:

ALTER SESSION SET NLS_LANGUAGE='SPANISH' NLS_DATE_FORMAT='DD-MM-YYYY' NLS_NUMERIC_CHARACTERS='.'

Where the NLS_LANGUAGE and NLS_DATE_FORMAT parameters are assigned to the language and date format that you want to use.

If you are using PostgreSQL, modify the 'dateFormat' database function in /database/model/prescript-PostgreSql.sql with the date format that you want to use, and apply that change to the database by performing:

ant update.database

In both cases, once all the changes are done, recompile and deploy Openbravo ERP:

ant compile.complete
ant war
ant deploy

Configuring the default numbering format

You can modify the default numbering format by editing the Format.xml file inside config folder. You should have decimal="." grouping="," for every category. Once this is done you will have to restart Tomcat and the reports will show as you wish.

Known issues

Here is a list of common issues with Openbravo ERP installation.

Tomcat hot-deployment problem on Windows

There is a known issue with Tomcat working under Windows. Openbravo ERP does a hot-deploy a of openbravo.war file to Tomcat but on Windows it often encounters file locking issues. Windows will not let Tomcat undeploy the old application because files are locked by the Operating System. Tomcat has mechanisms to allow avoiding locking. In Tomcat 5.5 and 6.0, this mechanism is disabled by default. To enable it edit %CATALINA_BASE%\conf\context.xml. Find the root <context> and add these two attributes:

<context antiJARLocking="true" antiResourceLocking="true" />

Jasper Reports Issue

When compiling the source code, the application server needs an internet connection in order to compile successfully the *.jrxml files. If not, the Jasper reports will not work on the application.

In Windows, firewalls could also impede Jasper reports compilation so turn them off temporarily.

The header of these .jrxml files is like

<?xml version="1.0" encoding="UTF-8"  ?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

If the application server does not have internet connection, you will have some errors while compiling the sources even if the build is successful. When you call one of these reports in the application, you will get something similar to this:

org.xml.sax.SAXParseException: Premature end of file.

If you edit all the jrxml files (a total of 58) and delete the line where it calls the internet connection,

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

the compilation will report no errors, but the translation will be done badly, and when calling one of these reports in the application, you will get an error window:

Language "null" not supported by this report compiler. Expecting "java" instead.

So, the final solution for this issue is to replace the line

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

by this one

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "/tmp/jasperreport.dtd">

in all 58 .jrxml files in order to avoid the contact with the previous url, and so the compilation and the application reports will work well.

Unsatisfied Link Error executing a Jasper Report

In some Linux distributions there is a problem using Java SDK 1.5.0_13 and Tomcat running as a daemon [jsvc]. When a Jasper Report is launched an error appears indicating that it cannot find a library. The easiest way of fixing it is editing /etc/init.d/tomcat script and export the variable LD_LIBRARY_PATH to the path where the library (libawt.so) is located. For example:

LD_LIBRARY_PATH=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre/lib/i386/
export LD_LIBRARY_PATH

Internet Explorer 6

The main problem is that IE6 does not support PNG with alpha channel. IE7 and Mozilla Firefox do.

First solution: replace PNG images with GIFs

Second solution: avoid using transparencies

Third solution: filters

We have tried several filter solutions but it can not be applied without a big change of css and html files.

So the only factible solution would be build a new skin with gif images, loosing interface quality. You can find info about how to build a new skin here http://wiki.openbravo.com/wiki/index.php/Skins

You always also have the choice of install Mozilla Firefox or update to IE7 (if you are a Windows XP user).

Openbravo FAQ

Openbravo's Frequently Asked Questions (FAQ).

Summary

Openbravo ERP installation should not present any other special problem if Openbravo environment has been properly installed before.

Support

For any question or doubt regarding Openbravo ERP installation, post them in Openbravo Help forum or join #openbravo IRC channel in Freenode.

Retrieved from "http://wiki.openbravo.com/wiki/Openbravo_ERP_installation"

This page has been accessed 35,266 times. This page was last modified 00:01, 4 June 2008. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Installation