Access to add and change pages is restricted. See: https://cwiki.apache.org/confluence/display/OFBIZ/Wiki+access

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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.

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

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

cd ofbiz
ant clean && ant

Generate Tomcat templates

Tomcat 5.5

java -jar ofbiz.jar -setup tomcat55

Tomcat 6

java -jar ofbiz.jar -setup tomcat6

Install Tomcat templates in server configuration folder

Tomcat 5

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

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

./bin/catalina.sh run

Run a cluster of Tomcats

As usual for a Tomcat (and OfBiz) cluster.

  • No labels