Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Guidelines to run OFBiz under Tomcat 5.5.26 or 6.0.16

Under framework/appserver there is 2 folders, one for Tomcat 5.5 (named tomcat55, validated with Tomcat 5.5.26) and another for Tomcat 6 (named tomcat6, validated wit Tomcat 6.0.16). Now the Tomcat server(s) use the Ofbiz SSL keystore. This How To has been given by Ludovic Maître at https://issues.apache.org/jira/browse/OFBIZ-1738 and has not been tested yet by the core team. Please refer to the Jira issue in case of problems.

Tip

Don't forget to have a look at the JRE Memory Leak Prevention Listener. Some lines which were put as examples in OOTB code have been removed at r1626971. See this dev ML tread if you are interested.

Get OfBiz and Tomcat

Code Block
mkdir ofbiz-tomcat
cd ofbiz-tomcat
svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
wget http://apache.crihan.fr/dist/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.tar.gz
tar -zxvf apache-tomcat-6.0.16.tar.gz

Compile OfBiz

Code Block
cd ofbiz
ant clean && ant

Generate Tomcat templates

Tomcat 5.5

Code Block
java -jar ofbiz.jar -setup tomcat55

Tomcat 6

Code Block
java -jar ofbiz.jar -setup tomcat6

Install Tomcat templates in server configuration folder

Tomcat 5

Code Block
cd ../apache-tomcat-5.5.26
cp ../ofbiz/setup/tomcat55/catalina.sh ../ofbiz/setup/tomcat55/catalina.bat bin/
cp ../ofbiz/setup/tomcat55/catalina.properties ../ofbiz/setup/tomcat55/server.xml conf/

Tomcat 6

Code Block
cd ../apache-tomcat-6.0.16
cp ../ofbiz/setup/tomcat6/catalina.sh ../ofbiz/setup/tomcat6/catalina.bat bin/
cp ../ofbiz/setup/tomcat6/catalina.properties ../ofbiz/setup/tomcat6/server.xml conf/

Run Tomcat

Code Block
./bin/catalina.sh run

Run a cluster of Tomcats

As usual for a Tomcat (and OfBiz) cluster.