You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Ludovic Maître (JIRA)" <ji...@apache.org> on 2008/04/13 13:17:08 UTC
[jira] Commented: (OFBIZ-1738) Add support for running one instance
of OfBiz under Tomcat
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588380#action_12588380 ]
Ludovic Maître commented on OFBIZ-1738:
---------------------------------------
Hi all,
I've finished working on the Tomcat setup files. There is now 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.
I've wrote a succinct documentation, should i or someone add it to the wiki ?
How to run OfBiz under Tomcat
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/
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.
> Add support for running one instance of OfBiz under Tomcat
> ----------------------------------------------------------
>
> Key: OFBIZ-1738
> URL: https://issues.apache.org/jira/browse/OFBIZ-1738
> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Affects Versions: SVN trunk
> Environment: Mac OS X 10.5.2, JDK 1.5.0_13
> Reporter: Ludovic Maître
> Assignee: Jacques Le Roux
> Priority: Minor
> Attachments: ofbiz-tomcat-setup.zip, tomcat.zip
>
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> This issue provide templates and patchs to run one instance of OfBiz under Tomcat.
> The templates are used to:
> - setup the classpath of Tomcat, (catalina.properties)
> - declare the ofbiz webapps in the server configuration
> The files generated from the templates, with the command 'java -jar ofbiz.jar -setup tomcat', should be copied in the $CATALINA_HOME/conf folder of Tomcat.
> IIRC there is also some setup to perform in the first loaded webapp, and a few other modifications in the code, i will digg into it this evening (French riviera time) and create a patch which will be added to this issue. (the full code is also published on my subversion server: http://forge.ubik-products.com/repositories/apache-ofbiz/trunk/ , but good luck to find the relveant parts :-))
> Best regards,
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.