<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=ERP%2F2.50%2FOpenbravo_environment_installation</id>
	<title>ERP/2.50/Openbravo environment installation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=ERP%2F2.50%2FOpenbravo_environment_installation"/>
	<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=ERP/2.50/Openbravo_environment_installation&amp;action=history"/>
	<updated>2026-04-06T17:09:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.infinite-erp.co.id/index.php?title=ERP/2.50/Openbravo_environment_installation&amp;diff=3886&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;{{RatingArticle}}  &lt;div style=&quot;background: white; border: 2px solid rgb(255, 0, 0); padding: 2px&quot;&gt; {{(!)| '''This document refers to the old Openbravo 2.50 version and is prob...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=ERP/2.50/Openbravo_environment_installation&amp;diff=3886&amp;oldid=prev"/>
		<updated>2022-08-13T10:55:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RatingArticle}}  &amp;lt;div style=&amp;quot;background: white; border: 2px solid rgb(255, 0, 0); padding: 2px&amp;quot;&amp;gt; {{(!)| &amp;#039;&amp;#039;&amp;#039;This document refers to the old Openbravo 2.50 version and is prob...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RatingArticle}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: white; border: 2px solid rgb(255, 0, 0); padding: 2px&amp;quot;&amp;gt;&lt;br /&gt;
{{(!)| '''This document refers to the old Openbravo 2.50 version and is probably not what you are looking for.'''&lt;br /&gt;
* For documentation about the latest Openbravo 3 version, go [[Installation/Custom|here]].&lt;br /&gt;
* If you are still using Openbravo 2.50, we strongly recommend to migrate to Openbravo 3. [[Upgrading_From_2.50|Upgrading from 2.50 guide]].&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Languages | ERP/2.50/Openbravo_environment_installation}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This article explains in detail how to install and configure the whole stack required for Openbravo ERP to run. The stack consists of:&lt;br /&gt;
&lt;br /&gt;
* [[#PostgreSQL_database|PostgreSQL]] or [[#Oracle_database|Oracle]] database&lt;br /&gt;
* [[#Sun_JDK|Sun Java Development Kit (JDK)]]&lt;br /&gt;
* [[#Apache_Tomcat|Apache Tomcat]]&lt;br /&gt;
* [[#Apache_Ant|Apache Ant]]&lt;br /&gt;
&lt;br /&gt;
{{(!)|If you are looking for a quick way to explore Openbravo ERP without installing the full system stack, try the [http://demo.openbravo.com/ '''Openbravo ERP on-line demo'''] or download an [[ERP/2.50/Openbravo_ERP_Installation#Community_Appliance|'''Openbravo ERP virtual appliance''']].}}&lt;br /&gt;
&lt;br /&gt;
Installation steps of each component are explained for the following operating systems:&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/windows/ Microsoft Windows]&lt;br /&gt;
* [http://www.debian.org/ Debian Etch/Lenny/Sid]&lt;br /&gt;
* [http://www.ubuntu.com/ Ubuntu/Kubuntu]&lt;br /&gt;
* [http://www.gentoo.org/ Gentoo Linux 2008.0]&lt;br /&gt;
* [http://centos.org/ CentOS]&lt;br /&gt;
&lt;br /&gt;
{{Fancydancy|'''Please feel free to contribute to this article by adding installation steps for more operating systems or improving existing ones'''.}}&lt;br /&gt;
&lt;br /&gt;
== PostgreSQL database ==&lt;br /&gt;
Openbravo ERP supports [http://www.postgresql.org/ PostgreSQL] as its database engine.&lt;br /&gt;
&lt;br /&gt;
* 8.3.5 is the minimum required version.&lt;br /&gt;
* The UUID contrib package is required.&lt;br /&gt;
&lt;br /&gt;
PostgreSQL documentation and tutorials are available at:&lt;br /&gt;
&lt;br /&gt;
* [http://www.postgresql.org/docs/ PostgreSQL Documentation]&lt;br /&gt;
* [http://www.thegeekstuff.com/2009/04/15-practical-postgresql-database-adminstration-commands/ 15 Practical PostgreSQL Database Administration Commands]&lt;br /&gt;
&lt;br /&gt;
===Installing PostgreSQL on Microsoft Windows ===&lt;br /&gt;
Follow the instructions on the [http://wiki.postgresql.org/wiki/Running_%26_Installing_PostgreSQL_On_Native_Windows PostgreSQL wiki]. Make sure to select the &amp;quot;UUID&amp;quot; option during the installation. &lt;br /&gt;
&lt;br /&gt;
There's two installers right now: ''pgInstaller'' and ''One click installer'', We suggest you use '''pgInstaller''' to install PostgreSQL.&lt;br /&gt;
&lt;br /&gt;
By default, '''One click installer''' version does not include the UUID, if you use it you will need to also do this three steps:&lt;br /&gt;
&lt;br /&gt;
#Download &amp;quot;uuid-ossp.dll&amp;quot; from zip file at [http://winpg.jp/~saito/pg_work/OSSP_win32/ winpg.jp]&lt;br /&gt;
#Unpack the zip file into ''%Postgresql_directory%/lib'' directory&lt;br /&gt;
#Restart the Postgresql server.&lt;br /&gt;
&lt;br /&gt;
=== Installing PostgreSQL on Debian (Ubuntu/Kubuntu/Linux Mint) ===&lt;br /&gt;
#Install the package using&lt;br /&gt;
#:&amp;lt;pre&amp;gt;sudo apt-get install postgresql-8.3 postgresql-contrib-8.3&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the postgres password using:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;sudo /etc/init.d/postgresql-8.3 start&lt;br /&gt;
#:sudo su - postgres -c psql&lt;br /&gt;
#:alter role postgres with password 'new_password';&lt;br /&gt;
#:\q&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing PostgreSQL on Gentoo ===&lt;br /&gt;
#Install the package using the following commands. Portage will tell you which version to specify:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo dev-db/postgresql &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo dev-db/postgresql-server &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo dev-db/postgresql-base &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo virtual/postgresql-base &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo app-admin/eselect-postgresql &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo dev-db/libpq &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo dev-libs/ossp-uuid &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
#:echo dev-db/postgresql-server uuid &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
#: emerge -av postgresql-server&lt;br /&gt;
#: emerge --config postgresql-server&lt;br /&gt;
#:/etc/init.d/postgresql-8.3 start&lt;br /&gt;
#:rc-update add postgresql-8.3 default&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the postgres password:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;psql -U postgres&lt;br /&gt;
#: alter role postgres with password 'new_password';&lt;br /&gt;
#: \q&lt;br /&gt;
#: sed -i 's/trust$/md5/' /var/lib/postgresql/8.3/data/pg_hba.conf&lt;br /&gt;
#: /etc/init.d/postgresql-8.3 reload&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing PostgreSQL on CentOS ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum install postgresql postgresql-contrib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Oracle database ==&lt;br /&gt;
Openbravo ERP also supports the following editions of Oracle 10g (version 10.2.0.4.0 or later) and 11g (version 11.1.0.6.0 or later):&lt;br /&gt;
&lt;br /&gt;
* [http://www.oracle.com/us/products/database/std-one/index.html Standard Edition One]&lt;br /&gt;
* [http://www.oracle.com/us/products/database/StandardEdition/index.html Standard Edition]&lt;br /&gt;
* [http://www.oracle.com/us/products/database/enterprise-edition/index.html Enterprise Edition]&lt;br /&gt;
&lt;br /&gt;
To learn more about Oracle, follow the links:&lt;br /&gt;
&lt;br /&gt;
* [http://www.oracle.com/technology/documentation/database.html Oracle Database 11g Documentation]&lt;br /&gt;
* [http://www.oracle.com/technology/documentation/database10gR2.html Oracle Database 10g Release 2 Documentation]&lt;br /&gt;
&lt;br /&gt;
===Installing Oracle on Microsoft Windows ===&lt;br /&gt;
Follow [http://www.oracle.com/technology/obe/11gr1_db/install/dbinst/windbinst.htm these instructions] to install Oracle 11g on Windows.&lt;br /&gt;
&lt;br /&gt;
=== Installing Oracle on Debian (Ubuntu/Kubuntu/Linux Mint) ===&lt;br /&gt;
&lt;br /&gt;
Follow [http://www.pythian.com/news/13291/installing-oracle-11gr2-enterprise-edition-on-ubuntu-10-04-lucid-lynx/ these step by step instructions] to install Oracle 11g on '''Ubuntu 10.04 (Lucid Lynx)'''.&lt;br /&gt;
&lt;br /&gt;
Follow [http://www.pythian.com/news/2329/installing-oracle-11gr1-on-ubuntu-904-jaunty-jackalope/ these step by step instructions] to install Oracle 11g on '''Ubuntu 9.04 (Jaunty Jackalope)'''.&lt;br /&gt;
&lt;br /&gt;
Follow [http://www.pythian.com/news/968/installing-oracle-11g-on-ubuntu-804-lts-hardy-heron/ these step by step instructions] to install Oracle 11g on '''Ubuntu 8.04 (Hardy Heron)'''.&lt;br /&gt;
&lt;br /&gt;
Or you can follow [http://www.linuxinsight.com/a-first-look-at-oracle-11g-database-on-debian-gnu-linux.html these instructions] to install Oracle 11g on '''other Debian (Ubuntu/Kubuntu/Mint) versions'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Oracle on Gentoo ===&lt;br /&gt;
Follow [http://gentoo-wiki.com/http://www.gentoo-wiki.info/HOWTO_Install_Oracle_10g these guidelines] to install Oracle 10g database on Gentoo.&lt;br /&gt;
&lt;br /&gt;
Follow [http://gentoo-wiki.com/HOWTO_Install_Oracle_10g_Express_Edition these guidelines] to install Oracle 11g database on Gentoo.&lt;br /&gt;
&lt;br /&gt;
===Installing Oracle on CentOS ===&lt;br /&gt;
&lt;br /&gt;
Follow [http://wiki.oracle.com/page/Installing+Oracle+on+CentOS these guidelines] to install Oracle 10g database on Gentoo.&lt;br /&gt;
&lt;br /&gt;
=== Common installation steps ===&lt;br /&gt;
&lt;br /&gt;
* Select AL32UTF8 as the database's NLS_CHARACTERSET.&lt;br /&gt;
* Select AL16UTF16 as the database's NLS_NCHAR_CHARACTERSET.&lt;br /&gt;
&lt;br /&gt;
=== Common postinstallation steps ===&lt;br /&gt;
In all the cases, after running the installation, check the following:&lt;br /&gt;
&lt;br /&gt;
* The '''number of open cursors''' should be at least '''3000'''. Verify it, and tune the ''ALTER SESSION'' to change the number of open cursors if needed:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;SELECT value FROM v$parameter WHERE name = 'open_cursors';&lt;br /&gt;
ALTER SYSTEM SET open_cursors = 3000 SCOPE=BOTH;&amp;lt;/source&amp;gt;&lt;br /&gt;
* Make sure that the '''number of processes''' is at least '''150'''. Verify it, and tune the ''ALTER SESSION'' to change the number of processes if needed:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;SELECT value FROM v$parameter WHERE name = 'processes';&lt;br /&gt;
ALTER SYSTEM set processes=150 SCOPE=SPFILE;&amp;lt;/source&amp;gt;&lt;br /&gt;
* Restart Oracle after doing this change.&lt;br /&gt;
&lt;br /&gt;
== Sun JDK ==&lt;br /&gt;
Openbravo supports the following JDKs:&lt;br /&gt;
&lt;br /&gt;
* [http://java.sun.com/ Sun Java Development Kit] version 1.6 (also known as JDK 6.0).&lt;br /&gt;
* [http://www.ibm.com/developerworks/java/jdk/ IBM JDK]&lt;br /&gt;
* [http://openjdk.java.net/ OpenJDK] version 6 (IcedTea 1.8.x).&lt;br /&gt;
&lt;br /&gt;
All the developers use Sun's version and therefore is the recommended one.&lt;br /&gt;
&lt;br /&gt;
=== Installing the Java SDK on Microsoft Windows ===&lt;br /&gt;
#Download and install [http://java.sun.com/javase/downloads/index.jsp JDK 1.6].&lt;br /&gt;
#Add the JAVA_HOME environment variable:&lt;br /&gt;
## Right-click on '''My Computer'''.&lt;br /&gt;
## Select '''Properties'''. The System Properties window appears. &lt;br /&gt;
## Select the '''Advanced''' tab then click  '''Environment Variables'''.&lt;br /&gt;
## Click '''New'''. The New System Variable box appears.&lt;br /&gt;
## In the '''Variable name''' field, type ''JAVA_HOME''.&lt;br /&gt;
## In the '''Variable value''' field type the path of the JDK installation directory. This is usually ''C:\Java\jdk1.6.0_&amp;lt;version&amp;gt;''&lt;br /&gt;
## Select the PATH environment variable.&lt;br /&gt;
## In the '''Variable value''' field, type the path of the JDK installation directory's ''bin'' folder. This is usually ''C:\Java\jdk1.6.0_&amp;lt;version&amp;gt;\bin''&lt;br /&gt;
&lt;br /&gt;
===Installing the Java SDK on Debian (Ubuntu/Kubuntu/Linux Mint) ===&lt;br /&gt;
&lt;br /&gt;
You must add unstable/non-free apt repositories to install sun-java-jdk6. Ubuntu/Kubuntu users may also need to add the Multiverse repository to install sun-java6-jdk. The Multiverse repository is enabled by default in version Ubuntu 7.10 onwards.&lt;br /&gt;
&lt;br /&gt;
#Install the package:&lt;br /&gt;
#:&amp;lt;pre&amp;gt; sudo apt-get install sun-java6-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the Sun Java JDK as the default JDK:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;sudo update-java-alternatives -s java-6-sun&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Create the '''JAVA_HOME''' variable:&lt;br /&gt;
#:&amp;lt;pre&amp;gt; echo 'JAVA_HOME=&amp;quot;/usr/lib/jvm/java-6-sun&amp;quot;' | sudo tee -a /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#To make this variable available in your current terminal run:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;source /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#To make these variables available system wide, restart the user session.&lt;br /&gt;
&lt;br /&gt;
===Installing the Java SDK on Gentoo ===&lt;br /&gt;
#To install the package:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;emerge -av sun-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the default JDK:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;java-config -S sun-jdk-1.6&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portage sets the '''JAVA_HOME''' variable automatically.&lt;br /&gt;
&lt;br /&gt;
===Installing the Java SDK on CentOS ===&lt;br /&gt;
&lt;br /&gt;
#Download [http://java.sun.com/javase/downloads/index.jsp JDK 1.6], put the file in /tmp/.&lt;br /&gt;
#Run the installer as root:&lt;br /&gt;
#&amp;lt;pre&amp;gt;su -&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;sh /tmp/jdk-6uXY-linux-i586.bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;mv /tmp/jdk1.6.0_XY/ /usr/local/sun-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Create the required environment variables:&lt;br /&gt;
#&amp;lt;pre&amp;gt;echo 'export JAVA_HOME=/usr/local/sun-jdk' &amp;gt; /etc/profile.d/sun-jdk.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;echo 'export PATH=$JAVA_HOME/bin/:$PATH' &amp;gt;&amp;gt; /etc/profile.d/sun-jdk.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;chmod +x /etc/profile.d/sun-jdk.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now log out and log in again as root:&lt;br /&gt;
#&amp;lt;pre&amp;gt;exit&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;su -&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Verify that the JDK is working as expected:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo $JAVA_HOME&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;/usr/local/sun-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;java version &amp;quot;1.6.0_18&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;Java(TM) SE Runtime Environment (build 1.6.0_18-b07)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Apache Tomcat ==&lt;br /&gt;
Openbravo ERP recommends [http://tomcat.apache.org/ Apache Tomcat] version 6.0 as the servlet container. Use the tar and not the Installer.&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Tomcat on Microsoft Windows ===&lt;br /&gt;
#Download and install [http://tomcat.apache.org/download-60.cgi Apache Tomcat 6.0].&lt;br /&gt;
#Add '''CATALINA_HOME''', '''CATALINA_BASE''' and '''CATALINA_OPTS''' environment variables:&lt;br /&gt;
##Right-click on '''My Computer'''.&lt;br /&gt;
##Select '''Properties'''. The system properties window appears.&lt;br /&gt;
##Select the '''Advanced''' tab.&lt;br /&gt;
##Click '''Environment Variables'''.&lt;br /&gt;
##Click '''New'''. The New User Variable box appears.&lt;br /&gt;
##In the '''Variable name''' field, type ''CATALINA_HOME''.&lt;br /&gt;
##In the '''Variable value''' field, type the path of the Apache Tomcat installation directory. This is usually ''C:\Apache Software Foundation\Tomcat 6.0''.&lt;br /&gt;
##Click '''OK'''.&lt;br /&gt;
##Click '''New'''. The New User Variable box appears.&lt;br /&gt;
##In the '''Variable name''' field, type ''CATALINA_BASE''.&lt;br /&gt;
##In the '''Variable value''' field type the path of the Apache Tomcat installation directory.&lt;br /&gt;
##Click '''OK'''&lt;br /&gt;
##Click '''New'''. The New User Variable box appears.&lt;br /&gt;
## In the '''Variable name''' field, type ''CATALINA_OPTS''.&lt;br /&gt;
##In the '''Variable value''' type ''-server -Xms384M -Xmx512M -XX:MaxPermSize=256M''.&lt;br /&gt;
### If you want to be able to install modules and update the core from the repository, we recommend setting the ''CATALINA_OPTS'' to  ''-server -Xms384M -Xmx1024M -XX:MaxPermSize=256M''&lt;br /&gt;
##Select the ''PATH'' environment variable.&lt;br /&gt;
##In the '''Variable value''' field, type the path of the Apache Tomcat installation's ''bin'' folder. This is usually ''C:\Apache Software Foundation\Tomcat 6.0\bin''.&lt;br /&gt;
{{(!)| More information about managing environment variables in Microsoft's [http://support.microsoft.com/kb/310519 Help &amp;amp; Support] site}}&lt;br /&gt;
#Copy the ''C:\Java\jdk1.6.0_&amp;lt;version&amp;gt;\bin\lib\tools.jar'' file from your Sun JDK installation to ''C:\Apache Software Foundation\Tomcat 6.0\lib\''&lt;br /&gt;
#In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in ''C:\Apache Software Foundation\Tomcat 6.0\conf\context.xml'':&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;!-- &amp;lt;WatchedResource&amp;gt;WEB-INF/web.xml&amp;lt;/WatchedResource&amp;gt; --&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
#Configure a username and password for the Tomcat Manager, by replacing the ''C:\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml'' file with these contents, replacing password=&amp;quot;admin&amp;quot; with your chosen password:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;br /&gt;
&amp;lt;tomcat-users&amp;gt;&lt;br /&gt;
  &amp;lt;role rolename=&amp;quot;manager&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;role rolename=&amp;quot;admin&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;user username=&amp;quot;admin&amp;quot; password=&amp;quot;admin&amp;quot; roles=&amp;quot;admin,manager&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/tomcat-users&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can check that Tomcat is running by opening http://localhost:8080 in a web browser.&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Tomcat on Debian (Ubuntu/Kubuntu/Linux Mint) ===&lt;br /&gt;
#Install the package:&lt;br /&gt;
#:&amp;lt;pre&amp;gt; sudo apt-get install tomcat6 tomcat6-admin &lt;br /&gt;
#: sudo rm /var/log/tomcat6/catalina.out&lt;br /&gt;
#: sudo /etc/init.d/tomcat6 start&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:'''Note''': On Ubuntu the 'sudo rm /var/log/tomcat6/catalina.out' command may not find the file, resulting in an error message. This will not affect the installation.&lt;br /&gt;
#Check that Tomcat is running by opening http://localhost:8080 in a web browser. Alternatively use the following nmap command to check that port 8080 is open:&lt;br /&gt;
#:&amp;lt;pre&amp;gt; nmap localhost -p 8080&amp;lt;/pre&amp;gt; if you don't have installed nmap you can try &amp;lt;pre&amp;gt;sudo netstat -atunep|grep 8080|grep jsvc&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:'''Note''': Earlier versions of Debian based distributions configured Tomcat to run on port 8180. If you cannot verify that Tomcat is running on port 8080, please try 8180 instead.&lt;br /&gt;
#Set the '''CATALINA_HOME''', '''CATALINA_BASE''' and '''CATALINA_OPTS''' variables:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'CATALINA_HOME=&amp;quot;/usr/share/tomcat6&amp;quot;' | sudo tee -a /etc/environment&lt;br /&gt;
#: echo 'CATALINA_BASE=&amp;quot;/var/lib/tomcat6&amp;quot;' | sudo tee -a /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Edit the /etc/default/tomcat6 file, and set the following line:-&lt;br /&gt;
#:&amp;lt;pre&amp;gt;JAVA_OPTS=&amp;quot;-server -Djava.awt.headless=true -Xms384M -Xmx512M -XX:MaxPermSize=256M&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#To make this variable available in your current terminal run:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;source /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#To make these variables available system wide, restart the user session.&lt;br /&gt;
#Check if the tools.jar library is present in Tomcat's classpath in directory /usr/share/tomcat6/lib and, if not, add it: &lt;br /&gt;
#:&amp;lt;pre&amp;gt;cp $JAVA_HOME/lib/tools.jar /usr/share/tomcat6/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in /var/lib/tomcat6/conf/context.xml:&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;!-- &amp;lt;WatchedResource&amp;gt;WEB-INF/web.xml&amp;lt;/WatchedResource&amp;gt; --&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
#Configure a username and password for the Tomcat Manager, by replacing the ''/etc/tomcat6/tomcat-users.xml'' file with these contents, replacing password=&amp;quot;admin&amp;quot; with your chosen password:&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;br /&gt;
#:&amp;lt;tomcat-users&amp;gt;&lt;br /&gt;
#:  &amp;lt;role rolename=&amp;quot;manager&amp;quot;/&amp;gt;&lt;br /&gt;
#:  &amp;lt;role rolename=&amp;quot;admin&amp;quot;/&amp;gt;&lt;br /&gt;
#:  &amp;lt;user username=&amp;quot;admin&amp;quot; password=&amp;quot;admin&amp;quot; roles=&amp;quot;admin,manager&amp;quot;/&amp;gt;&lt;br /&gt;
#:&amp;lt;/tomcat-users&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
#Starting with 2.50, the modularity feature required the tomcat user to write in the main Openbravo ERP directory. So achieve this, edit the /etc/init.d/tomcat6 file, search for ''umask 022'' and replace it with ''umask 002''. Then restart Tomcat.&lt;br /&gt;
&lt;br /&gt;
{{Fancydancy|'''Important notes''':&lt;br /&gt;
* The security policy of Debian's Tomcat package will prevent the Openbravo context from loading. You must either disable the security policy or create a rule to allow the Openbravo context to load.&lt;br /&gt;
*#To create a rule for Openbravo you must create a .policy file. Use a command like:&lt;br /&gt;
*#:&amp;lt;pre&amp;gt; sudo touch /etc/tomcat6/policy.d/20openbravo.policy&amp;lt;/pre&amp;gt; &lt;br /&gt;
*#:to create a file called ''/etc/tomcat5.5/policy.d/20openbravo.policy''.&lt;br /&gt;
*#Open the file and add the following contents:&lt;br /&gt;
*#:&amp;lt;pre&amp;gt; // permissions for Openbravo ERP&lt;br /&gt;
*#: grant codeBase &amp;quot;file:${catalina.base}/webapps/openbravo/-&amp;quot; {&lt;br /&gt;
*#:   permission java.security.AllPermission;&lt;br /&gt;
*#: };&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#Save the file.&lt;br /&gt;
*#Restart tomcat to make the changes effective.&lt;br /&gt;
*#:&amp;lt;pre&amp;gt; sudo /etc/init.d/tomcat6 restart&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Tomcat on Gentoo ===&lt;br /&gt;
#Install the package:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;emerge -av tomcat&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Start Tomcat:&lt;br /&gt;
#: /etc/init.d/tomcat-6 start&lt;br /&gt;
#: rc-update add tomcat-6 default&lt;br /&gt;
#:You can check that Tomcat has been in stalled correctly by opening http://localhost:8080 in a web browser Alternatively, use the following nmap command to check that port 8080 is open:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;nmap localhost -p 8080&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the '''CATALINA_HOME''' and '''CATALINA_BASE''' variables:&lt;br /&gt;
#:&amp;lt;pre&amp;gt; touch /etc/env.d/99tomcat&lt;br /&gt;
#:echo 'CATALINA_HOME=/usr/share/tomcat-6' &amp;gt;&amp;gt; /etc/env.d/99tomcat&lt;br /&gt;
#:echo 'CATALINA_BASE=/var/lib/tomcat-6' &amp;gt;&amp;gt; /etc/env.d/99tomcat&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Update the environment and make the newly created environment variables available system-wide:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;env-update &amp;amp;&amp;amp; source /etc/profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the '''CATALINA_OPTS''' variable by editing the /etc/conf.d/tomcat-6 file:&lt;br /&gt;
#:&amp;lt;pre&amp;gt; CATALINA_OPTS=&amp;quot;-server -Xms384M -Xmx512M -XX:MaxPermSize=256M&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Add the tools.jar library to Tomcat's classpath: &lt;br /&gt;
#:&amp;lt;pre&amp;gt;cp $JAVA_HOME/lib/tools.jar /var/lib/tomcat-6/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in /etc/tomcat-6/context.xml:&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;!-- &amp;lt;WatchedResource&amp;gt;WEB-INF/web.xml&amp;lt;/WatchedResource&amp;gt; --&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
#Configure a username and password for the Tomcat Manager, by replacing the ''/var/lib/tomcat-6/conf/tomcat-users.xml'' file with these contents, replacing password=&amp;quot;admin&amp;quot; with your chosen password:&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;br /&gt;
#:&amp;lt;tomcat-users&amp;gt;&lt;br /&gt;
#:  &amp;lt;role rolename=&amp;quot;manager&amp;quot;/&amp;gt;&lt;br /&gt;
#:  &amp;lt;role rolename=&amp;quot;admin&amp;quot;/&amp;gt;&lt;br /&gt;
#:  &amp;lt;user username=&amp;quot;admin&amp;quot; password=&amp;quot;admin&amp;quot; roles=&amp;quot;admin,manager&amp;quot;/&amp;gt;&lt;br /&gt;
#:&amp;lt;/tomcat-users&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
#Starting with 2.50, the modularity feature required the tomcat user to write in the main Openbravo ERP directory. So achieve this, edit the /etc/init.d/tomcat-6 file, search for this line:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;start-stop-daemon ${arguments} --exec ${executor} -- ${OPTS_CP} &amp;quot;$@&amp;quot; \&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Replace it with the following ones:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#:umask 002 &amp;amp;&amp;amp; \&lt;br /&gt;
#:start-stop-daemon ${arguments} --exec ${executor} -- ${OPTS_CP} &amp;quot;$@&amp;quot; \&lt;br /&gt;
#:&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:Restart Tomcat to apply the changes:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;/etc/init.d/tomcat-6 restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Tomcat on FreeBSD===&lt;br /&gt;
You may use tomcat5.5 (/usr/ports/www/tomcat55), tomcat6 (/usr/ports/www/tomcat6), or possibly other verisons. Substitute the version in the commands as necessary.&lt;br /&gt;
&lt;br /&gt;
#Install tomcat&lt;br /&gt;
#:&amp;lt;pre&amp;gt;cd /usr/ports/www/tomcat6&lt;br /&gt;
#:make &amp;amp;&amp;amp; make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set necessary memory options for tomcat&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'tomcat6_java_opts=&amp;quot;-server -Xms384M -Xmx512M -XX:MaxPermSize=256M&amp;quot;' \&lt;br /&gt;
#:   &amp;gt;&amp;gt; /etc/rc.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the CATALINA_HOME variable&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'tomcat6_catalina_home=&amp;quot;/usr/local/tomcat6&amp;quot;' &amp;gt;&amp;gt; /etc/rc.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Start tomcat&lt;br /&gt;
#:&amp;lt;pre&amp;gt;/usr/local/etc/rc.d/tomcat6 start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Tomcat on CentOS===&lt;br /&gt;
&lt;br /&gt;
#Download the apache-tomcat-6.0.XY.tar.gz file from [http://tomcat.apache.org/download-60.cgi Apache Tomcat 6.0] and place it in /tmp/.&lt;br /&gt;
#Uncompress it:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;su -&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;cd /usr/local&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;tar zxvf /tmp/apache-tomcat-6.0.XY.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;mv apache-tomcat-6.0.XY/ tomcat&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Add '''CATALINA_HOME''', '''CATALINA_BASE''' and '''CATALINA_OPTS''' environment variables:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'export CATALINA_HOME=/usr/local/tomcat' &amp;gt; /etc/profile.d/tomcat.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'export CATALINA_BASE=/usr/local/tomcat' &amp;gt;&amp;gt; /etc/profile.d/tomcat.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'export CATALINA_OPTS=&amp;quot;-server -Xms128M -Xmx1024M -XX:MaxPermSize=256M&amp;quot;' &amp;gt;&amp;gt; /etc/profile.d/tomcat.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;chmod +x /etc/profile.d/tomcat.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;chown -R openbravo:openbravo /usr/local/tomcat&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Download [http://openbravo.pastebin.com/8mrFtJ6H this init script] and place it into /etc/init.d/tomcat. Then make it executable:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;chmod +x /etc/init.d/tomcat&amp;lt;/pre&amp;gt;&lt;br /&gt;
#In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in ''/usr/local/tomcat/conf/context.xml'':&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;!-- &amp;lt;WatchedResource&amp;gt;WEB-INF/web.xml&amp;lt;/WatchedResource&amp;gt; --&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
#Configure a username and password for the Tomcat Manager, by replacing the ''/usr/local/tomcat/conf/tomcat-users.xml'' file with these contents, replacing password=&amp;quot;admin&amp;quot; with your chosen password:&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;br /&gt;
#:&amp;lt;tomcat-users&amp;gt;&lt;br /&gt;
#:  &amp;lt;role rolename=&amp;quot;manager&amp;quot;/&amp;gt;&lt;br /&gt;
#:  &amp;lt;role rolename=&amp;quot;admin&amp;quot;/&amp;gt;&lt;br /&gt;
#:  &amp;lt;user username=&amp;quot;admin&amp;quot; password=&amp;quot;admin&amp;quot; roles=&amp;quot;admin,manager&amp;quot;/&amp;gt;&lt;br /&gt;
#:&amp;lt;/tomcat-users&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat through a proxy===&lt;br /&gt;
If your network have a proxy, you need to append this to the tomcat configuration:&lt;br /&gt;
&lt;br /&gt;
 CATALINA_OPTS='-Dhttp.proxySet=true -Dhttp.proxyHost=[PROXY SERVER] -Dhttp.proxyPort=[PORT]'&lt;br /&gt;
&lt;br /&gt;
== Apache Ant ==&lt;br /&gt;
[http://ant.apache.org/ Apache Ant] is a Java-based build tool used by Openbravo ERP to automate most of its development tasks. Version 1.7.0  or higher is required.&lt;br /&gt;
{{(!)|Note: Apache Ant 1.8.x has not been tested. Use the latest 1.7.x}}&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Ant on Microsoft Windows ===&lt;br /&gt;
#Download and extract [http://ant.apache.org/bindownload.cgi Apache Ant] ([http://archive.apache.org/dist/ant/binaries/ old releases]) onto your system (for instance, ''C:\Apache-Ant'').&lt;br /&gt;
#Add '''ANT_HOME''' environment variable:&lt;br /&gt;
##Right-click on '''My Computer'''.&lt;br /&gt;
##Select '''Properties'''. The System Properties window appears.&lt;br /&gt;
##Select the '''Advanced''' tab. &lt;br /&gt;
##Click on the '''Environment Variables''' button.&lt;br /&gt;
##Click the '''New''' button.&lt;br /&gt;
##In the '''Variable name''' field, type ''ANT_HOME''.&lt;br /&gt;
##In the '''Variable value''' field, type the path of the Ant directory. This is usually ''C:\Apache-Ant''.&lt;br /&gt;
##Click '''OK'''.&lt;br /&gt;
## Select the ''PATH'' environment variable.&lt;br /&gt;
##In the Variable value field, type the path of the Ant directory's ''bin'' folder. This is usually ''C:\Apache-Ant\bin''.&lt;br /&gt;
#Equally add the '''ANT_OPTS''' environment variable:&lt;br /&gt;
##Click the '''New''' button.&lt;br /&gt;
##In the '''Variable name''' field, type ''ANT_OPTS''.&lt;br /&gt;
##In the '''Variable value''' field, type ''-Xmx1024M -XX:MaxPermSize=128M''.&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Ant on Debian (Ubuntu/Kubuntu/Linux Mint) ===&lt;br /&gt;
#Install the package:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;sudo apt-get install ant ant-optional&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the '''ANT_HOME''' variable:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'ANT_HOME=&amp;quot;/usr/share/ant&amp;quot;' | sudo tee -a /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Set the '''ANT_OPTS''' variable:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'ANT_OPTS=&amp;quot;-Xmx1024M -XX:MaxPermSize=128M&amp;quot;' | sudo tee -a /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Make the ANT_HOME and ANT_OPTS variables available in your current terminal run:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;source /etc/environment&amp;lt;/pre&amp;gt;&lt;br /&gt;
#To make the variables available system wide, restart the user session.&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Ant on Gentoo ===&lt;br /&gt;
In Gentoo it's enough to install the ant-core package:&lt;br /&gt;
&lt;br /&gt;
 emerge -av dev-java/ant-core&lt;br /&gt;
&lt;br /&gt;
Portage sets the '''ANT_HOME''' variable automatically. But not '''ANT_OPTS'''. To set it:&lt;br /&gt;
&lt;br /&gt;
 echo 'ANT_OPTS=&amp;quot;-Xmx1024M -XX:MaxPermSize=128M&amp;quot;' &amp;gt; /etc/env.d/99ant&lt;br /&gt;
 env-update &amp;amp;&amp;amp; source /etc/profile&lt;br /&gt;
&lt;br /&gt;
To make the variables available system wide, restart the user session.&lt;br /&gt;
&lt;br /&gt;
===Installing Apache Ant on CentOS===&lt;br /&gt;
&lt;br /&gt;
#Download and extract [http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz Apache Ant] 1.7.1 onto your system:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;su -&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;cd /tmp&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;cd /usr/local&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;tar zxvf /tmp/apache-ant-1.7.1-bin.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;mv apache-ant-1.7.1/ ant&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Add the environment variables:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'export ANT_HOME=/usr/local/ant' &amp;gt; /etc/profile.d/ant.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'export PATH=$ANT_HOME/bin/:$PATH' &amp;gt;&amp;gt; /etc/profile.d/ant.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;echo 'export ANT_OPTS=&amp;quot;-Xmx1024M -XX:MaxPermSize=128M&amp;quot;' &amp;gt;&amp;gt; /etc/profile.d/ant.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:&amp;lt;pre&amp;gt;chmod +x /etc/profile.d/ant.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now log out and log in again as root:&lt;br /&gt;
#&amp;lt;pre&amp;gt;exit&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;su -&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Verify that Ant working as expected:&lt;br /&gt;
#&amp;lt;pre&amp;gt;ant -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
#&amp;lt;pre&amp;gt;Apache Ant version 1.7.1 compiled on June 27 2008&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Operating system permissions for Tomcat ==&lt;br /&gt;
UNIX based operating systems use different system users to run their processes and services. Tomcat usually has its own ''tomcat'' user, and a command line and task is run by a normal user, e.g. ''openbravo''. Since the introduction of the modularity feature in version 2.50, it is necessary to allow ''tomcat'' to write in the root directory of the Openbravo ERP installation. Conversely, the ''openbravo'' user requires write permissions in the Tomcat webapps directory.&lt;br /&gt;
&lt;br /&gt;
#Change the default file permissions for the user running the Ant tasks, e.g. ''openbravo''. Assuming you are using Bash as your shell, append the following line to the /home/openbravo/.bashrc file:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;umask 002&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Add openbravo to the tomcat group:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;gpasswd -a openbravo tomcat&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Add tomcat to the openbravo group:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;gpasswd -a tomcat openbravo&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Windows systems do not use system users in the same way, so these changes are not required.&lt;br /&gt;
&lt;br /&gt;
== Performance and security tips ==&lt;br /&gt;
For production environments, it is recommended to make some changes in order to [[Performance_and_Security_Tips| improve Openbravo ERP performance and security]].&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
Here is a list of known issues during Openbravo environment installation.&lt;br /&gt;
&lt;br /&gt;
=== JDK and X issue in Debian/Ubuntu ===&lt;br /&gt;
When installing a module from within Openbravo ERP, you may get an error saying that the tomcat user cannot access the X server. To workaround this, run this with the user running the ant tasks:&lt;br /&gt;
&lt;br /&gt;
 xhost +&lt;br /&gt;
&lt;br /&gt;
=== Jasper Reports ===&lt;br /&gt;
In some configurations to make JasperReports work, you need to add ''-Djava.awt.headless=true'' parameter to the ''CATALINA_OPTS'' environment variable. The ''CATALINA_OPTS'' should look something similar to ''CATALINA_OPTS =&amp;quot;-server -Xms384M -Xmx512M -Djava.awt.headless=true&amp;quot;''.&lt;br /&gt;
&lt;br /&gt;
=== Tomcat hot-deployment problem on Windows ===&lt;br /&gt;
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 &amp;lt;context&amp;gt; and add these two attributes:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;context antiJARLocking=&amp;quot;true&amp;quot; antiResourceLocking=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Openbravo ERP FAQ ===&lt;br /&gt;
[[FAQ|Openbravo's ERP Frequently Asked Questions (FAQ)]].&lt;br /&gt;
&lt;br /&gt;
== Support ==&lt;br /&gt;
If you have any questions about installing the penbravo environment, post them in [http://forge.openbravo.com/plugins/espforum/browse.php?group_id=100&amp;amp;forumid=549511 Openbravo Help forum] or join [[Communication_channels#Openbravo_chat_channels | #openbravo IRC channel]] in Freenode.&lt;br /&gt;
&lt;br /&gt;
== Installing Openbravo ERP ==&lt;br /&gt;
&lt;br /&gt;
Now that the technology stack is properly installed and configured you can continue with your [[ERP/2.50/Openbravo_ERP_Installation/Custom_Installation#Downloading_Openbravo_ERP|'''custom installation of Openbravo ERP''']].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation ERP]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>