Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

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

...