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.
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
|
...
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/
|
...
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.