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 Priority: Minor 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. |
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ludovic Maître updated OFBIZ-1738: ---------------------------------- Attachment: tomcat.zip Templates for Ofbiz integration into Tomcat configuration files. Unzip in $OFBIZ_ROOT/framework/appserver/templates and run `java -jar ofbiz.jar -setup tomcat` to generate the files. > 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 > Priority: Minor > Attachments: 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux reassigned OFBIZ-1738: -------------------------------------- Assignee: Jacques Le Roux > 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: 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ludovic Maître updated OFBIZ-1738: ---------------------------------- Attachment: ofbiz-tomcat-setup.zip Final version of the OfBiz Tomcat setup templates. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-1738. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Thanks Ludovic, Your "patch" is in trunk rev. 649921 I did not test anything, I just added ASL headers to bat and sh scripts in the 55 branch and made a page in Wiki at http://docs.ofbiz.org/x/gR from your how to. I did so for 2 main reasons : 1. I have no time to test thorougly, and I suppose that it works from your comments this issue 2. It's harmless for the project, only people interested may encounter issues if any > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590765#action_12590765 ] Jacques Le Roux commented on OFBIZ-1738: ---------------------------------------- Something I forgot to mention : you let some svn scoria in the 55 branch, I did not search if it was by purpose, I simply dropped them. > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
There was a particular reasoning for running tomcat embedded. What was
it? If those issues are resolved, would it be better to tomcat (non)embedded? This would help quite a few integration issues. I just did a quick run and it works. However, there may be a classloader issue. I had to copy the mysql jar to tomcat-x/lib because it wasn't getting picked up in ofbiz/framework/entity/lib/jdbc . --- "Jacques Le Roux (JIRA)" <[hidden email]> wrote: > > [ > https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > Jacques Le Roux closed OFBIZ-1738. > ---------------------------------- > > Resolution: Fixed > Fix Version/s: SVN trunk > > Thanks Ludovic, > > Your "patch" is in trunk rev. 649921 > > > I did not test anything, I just added ASL headers to bat and sh > scripts in the 55 branch and made a page in Wiki at > http://docs.ofbiz.org/x/gR from your how to. > I did so for 2 main reasons : > 1. I have no time to test thorougly, and I suppose that it works from > your comments this issue > 2. It's harmless for the project, only people interested may > encounter issues if any > > > 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 > > Fix For: SVN trunk > > > > 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. > > |
The biggest reason was to have an OOTB application.
just load and run. Chris Howe sent the following on 4/20/2008 10:17 PM: > There was a particular reasoning for running tomcat embedded. What was > it? If those issues are resolved, would it be better to tomcat > (non)embedded? This would help quite a few integration issues. > > I just did a quick run and it works. However, there may be a > classloader issue. I had to copy the mysql jar to tomcat-x/lib because > it wasn't getting picked up in ofbiz/framework/entity/lib/jdbc . > > > --- "Jacques Le Roux (JIRA)" <[hidden email]> wrote: > >> [ >> > https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >> ] >> >> Jacques Le Roux closed OFBIZ-1738. >> ---------------------------------- >> >> Resolution: Fixed >> Fix Version/s: SVN trunk >> >> Thanks Ludovic, >> >> Your "patch" is in trunk rev. 649921 >> >> >> I did not test anything, I just added ASL headers to bat and sh >> scripts in the 55 branch and made a page in Wiki at >> http://docs.ofbiz.org/x/gR from your how to. >> I did so for 2 main reasons : >> 1. I have no time to test thorougly, and I suppose that it works from >> your comments this issue >> 2. It's harmless for the project, only people interested may >> encounter issues if any >> >>> 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 >>> Fix For: SVN trunk >>> >>> 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. >> >> > > > > |
That is part of the reason, but technically we could do that with OFBiz running inside of Tomcat instead of Tomcat embedded in OFBiz. Actually, in the first few years of OFBiz it wasn't too hard to checkout, build, deploy, and run OFBiz when it was running inside another "app server". The default was Jetty for a long time because it wasn't necessary to copy all of the classpath resources to directories under the app server directory as is the case with Tomcat. What it really comes down to is development and deployment convenience. There are hundreds of classpath entries and a couple of dozen webapps in OFBiz, plus other resources that J2EE app servers don't know anything about like Entity and Service Engine resources, test definitions, and so on. On top of this we don't want all of this to be in one big blob, but the different segmented parts need to be able to setup all of the resources they provide. That is the reason for the Containers and Components in OFBiz. Some of this configuration and functionality can still be used when OFBiz is deployed in another app server, but much of it can still be used either through the template generation stuff or through the automatic run-time container loader to initialize OFBiz stuff (as opposed to the case where OFBiz starts on its own and embeds everything else and initializes them through a different containers file, the default ofbiz-containers.xml). In short it is certainly possible to deploy OFBiz in another app server. Unfortunately standard deployment tools, like the EAR file, are not adequate for something like OFBiz because of limitations in the spec (like not being able to add things to the classloader shared by the webapps in the EAR). The cost of deploying in another app server is usually such that the benefit gained is less, or sometimes little more than a rounding error compared to the cost. On the other hand, if you have a $1,000,000 Weblogic cluster or the like then the $40k to build the deployment scripts and templates and the $15k per year to maintain and use them is reasonable (those are rough estimates based on seeing such a thing done, and will vary greatly from one organization to another, and from one deployment plan to another, and from one app server to another). Generally OFBiz runs just as well or better using the embedded tools, and supports all of the clustering and other functionality needed to deploy in large-scale environments. It also has the benefit of being a configuration tested by WAY more people than a custom deployment process in another app server. In general the promise that J2EE apps can be easily written in abstract form and deployed on any compliant app server is one of the greatest missed opportunities (or mis-representations...) of the marketing and design behind the J2EE specs, and that's true whether you're talking about OFBiz or not. -David On Apr 21, 2008, at 10:49 AM, BJ Freeman wrote: > The biggest reason was to have an OOTB application. > just load and run. > > > Chris Howe sent the following on 4/20/2008 10:17 PM: >> There was a particular reasoning for running tomcat embedded. What >> was >> it? If those issues are resolved, would it be better to tomcat >> (non)embedded? This would help quite a few integration issues. >> >> I just did a quick run and it works. However, there may be a >> classloader issue. I had to copy the mysql jar to tomcat-x/lib >> because >> it wasn't getting picked up in ofbiz/framework/entity/lib/jdbc . >> >> >> --- "Jacques Le Roux (JIRA)" <[hidden email]> wrote: >> >>> [ >>> >> https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >>> ] >>> >>> Jacques Le Roux closed OFBIZ-1738. >>> ---------------------------------- >>> >>> Resolution: Fixed >>> Fix Version/s: SVN trunk >>> >>> Thanks Ludovic, >>> >>> Your "patch" is in trunk rev. 649921 >>> >>> >>> I did not test anything, I just added ASL headers to bat and sh >>> scripts in the 55 branch and made a page in Wiki at >>> http://docs.ofbiz.org/x/gR from your how to. >>> I did so for 2 main reasons : >>> 1. I have no time to test thorougly, and I suppose that it works >>> from >>> your comments this issue >>> 2. It's harmless for the project, only people interested may >>> encounter issues if any >>> >>>> 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 >>>> Fix For: SVN trunk >>>> >>>> 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. >>> >>> >> >> >> >> > > |
It was specifically the clustering part that I was interested in and
was likely going to make an attempt at understanding the concept a bit more this weekend. Terracotta (http://www.terracotta.org/) appears to have a relatively straight forward means of deploying tomcat - and by extension the applications tomcat is running, but on first look seems to have a challenging way of going about deploying things that have tomcat embedded. I was curious about using the approach of: 1) building with tomcat embedded 2) deploying with OFBiz under Tomcat 3) scaling with Terracotta Any obvious pitfalls to be looking out for? --- David E Jones <[hidden email]> wrote: > > That is part of the reason, but technically we could do that with > OFBiz running inside of Tomcat instead of Tomcat embedded in OFBiz. > Actually, in the first few years of OFBiz it wasn't too hard to > checkout, build, deploy, and run OFBiz when it was running inside > another "app server". The default was Jetty for a long time because > it > wasn't necessary to copy all of the classpath resources to > directories > under the app server directory as is the case with Tomcat. > > What it really comes down to is development and deployment > convenience. There are hundreds of classpath entries and a couple of > > dozen webapps in OFBiz, plus other resources that J2EE app servers > don't know anything about like Entity and Service Engine resources, > test definitions, and so on. On top of this we don't want all of this > > to be in one big blob, but the different segmented parts need to be > able to setup all of the resources they provide. > > That is the reason for the Containers and Components in OFBiz. Some > of > this configuration and functionality can still be used when OFBiz is > > deployed in another app server, but much of it can still be used > either through the template generation stuff or through the automatic > > run-time container loader to initialize OFBiz stuff (as opposed to > the > case where OFBiz starts on its own and embeds everything else and > initializes them through a different containers file, the default > ofbiz-containers.xml). > > In short it is certainly possible to deploy OFBiz in another app > server. Unfortunately standard deployment tools, like the EAR file, > are not adequate for something like OFBiz because of limitations in > the spec (like not being able to add things to the classloader shared > > by the webapps in the EAR). > > The cost of deploying in another app server is usually such that the > > benefit gained is less, or sometimes little more than a rounding > error > compared to the cost. On the other hand, if you have a $1,000,000 > Weblogic cluster or the like then the $40k to build the deployment > scripts and templates and the $15k per year to maintain and use them > > is reasonable (those are rough estimates based on seeing such a thing > > done, and will vary greatly from one organization to another, and > from > one deployment plan to another, and from one app server to another). > > Generally OFBiz runs just as well or better using the embedded tools, > > and supports all of the clustering and other functionality needed to > > deploy in large-scale environments. It also has the benefit of being > a > configuration tested by WAY more people than a custom deployment > process in another app server. > > In general the promise that J2EE apps can be easily written in > abstract form and deployed on any compliant app server is one of the > > greatest missed opportunities (or mis-representations...) of the > marketing and design behind the J2EE specs, and that's true whether > you're talking about OFBiz or not. > > -David > > > On Apr 21, 2008, at 10:49 AM, BJ Freeman wrote: > > The biggest reason was to have an OOTB application. > > just load and run. > > > > > > Chris Howe sent the following on 4/20/2008 10:17 PM: > >> There was a particular reasoning for running tomcat embedded. > What > >> was > >> it? If those issues are resolved, would it be better to tomcat > >> (non)embedded? This would help quite a few integration issues. > >> > >> I just did a quick run and it works. However, there may be a > >> classloader issue. I had to copy the mysql jar to tomcat-x/lib > >> because > >> it wasn't getting picked up in ofbiz/framework/entity/lib/jdbc . > >> > >> > >> --- "Jacques Le Roux (JIRA)" <[hidden email]> wrote: > >> > >>> [ > >>> > >> > > >>> ] > >>> > >>> Jacques Le Roux closed OFBIZ-1738. > >>> ---------------------------------- > >>> > >>> Resolution: Fixed > >>> Fix Version/s: SVN trunk > >>> > >>> Thanks Ludovic, > >>> > >>> Your "patch" is in trunk rev. 649921 > >>> > >>> > >>> I did not test anything, I just added ASL headers to bat and sh > >>> scripts in the 55 branch and made a page in Wiki at > >>> http://docs.ofbiz.org/x/gR from your how to. > >>> I did so for 2 main reasons : > >>> 1. I have no time to test thorougly, and I suppose that it works > > >>> from > >>> your comments this issue > >>> 2. It's harmless for the project, only people interested may > >>> encounter issues if any > >>> > >>>> 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 > >>>> Fix For: SVN trunk > >>>> > >>>> 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. > >>> > >>> > >> > >> > >> > >> > > > > > > |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615984#action_12615984 ] cristina commented on OFBIZ-1738: --------------------------------- I have done all the steps until the last one, but the last doesn't work. I'm using tomcat 5.5. I get the following message error: D:\ofbiz-tomcat\apache-tomcat-5.5.26\bin>catalina.bat run Using CATALINA_BASE: D:\ofbiz-tomcat\apache-tomcat-5.5.26 Using CATALINA_HOME: D:\ofbiz-tomcat\apache-tomcat-5.5.26 Using CATALINA_TMPDIR: D:\ofbiz-tomcat\apache-tomcat-5.5.26\temp Using JRE_HOME: D:\Java\jre1.5.0_16 Exception in thread "main" java.lang.NoClassDefFoundError: -Dofbiz/home=D:/ofbiz-tomcat/ofbiz Can you help me, please? Thank you in advanced. > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620591#action_12620591 ] vu hong thuan commented on OFBIZ-1738: -------------------------------------- I found some errors in generate batch file for catalina.bat in windows environment 1. Should use forward-slash / than backward-slash \ in catalina.properties such as ofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz shared.loader=file://${ofbiz.home}/ofbiz.jar,\ ${ofbiz.home},\ ${ofbiz.home}/framework/base/dtd,\ ${ofbiz.home}/framework/base/config,\ ${ofbiz.home}/framework/entity/dtd,\ ${ofbiz.home}/framework/entity/config,\ 2. Error in catalina.bat should use set JAVA_OPTS=-Dofbiz.home="D:/Project/Nammedia/nerp-tomcat6/nerp" rather than set JAVA_OPTS="%JAVA_OPTS% -Dofbiz.home=D:/Project/Nammedia/nerp-tomcat6/nerp" 3. After I reconfig, I can run tomcat, but unable to start application because the following error Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.ControlEventListener" is already configured for this context. The duplicate definition has been ignored. Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.LoginEventListener" is already configured for this context. The duplicate definition has been ignored. ... Can you help me, please? Thanks > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620591#action_12620591 ] thuanvh edited comment on OFBIZ-1738 at 8/7/08 3:40 AM: -------------------------------------------------------------- I found some errors in generate batch file for catalina.bat in windows environment 1. Should use forward-slash / than backward-slash \ in catalina.properties such as ofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz shared.loader=file://${ofbiz.home}/ofbiz.jar,\ ${ofbiz.home},\ ${ofbiz.home}/framework/base/dtd,\ ${ofbiz.home}/framework/base/config,\ ${ofbiz.home}/framework/entity/dtd,\ ${ofbiz.home}/framework/entity/config,\ 2. Error in catalina.bat should use set JAVA_OPTS=-Dofbiz.home="D:/Project/ofbiz-tomcat6/ofbiz" rather than set JAVA_OPTS="%JAVA_OPTS% -Dofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz" 3. After I reconfig, I can run tomcat, but unable to start application because the following error Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.ControlEventListener" is already configured for this context. The duplicate definition has been ignored. Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.LoginEventListener" is already configured for this context. The duplicate definition has been ignored. ... Can you help me, please? Thanks was (Author: thuanvh): I found some errors in generate batch file for catalina.bat in windows environment 1. Should use forward-slash / than backward-slash \ in catalina.properties such as ofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz shared.loader=file://${ofbiz.home}/ofbiz.jar,\ ${ofbiz.home},\ ${ofbiz.home}/framework/base/dtd,\ ${ofbiz.home}/framework/base/config,\ ${ofbiz.home}/framework/entity/dtd,\ ${ofbiz.home}/framework/entity/config,\ 2. Error in catalina.bat should use set JAVA_OPTS=-Dofbiz.home="D:/Project/Nammedia/nerp-tomcat6/nerp" rather than set JAVA_OPTS="%JAVA_OPTS% -Dofbiz.home=D:/Project/Nammedia/nerp-tomcat6/nerp" 3. After I reconfig, I can run tomcat, but unable to start application because the following error Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.ControlEventListener" is already configured for this context. The duplicate definition has been ignored. Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.LoginEventListener" is already configured for this context. The duplicate definition has been ignored. ... Can you help me, please? Thanks > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] vu hong thuan updated OFBIZ-1738: --------------------------------- Attachment: catalina.properties catalina.bat \framework\appserver\templates\tomcat6\ Update for tomcat 6 template webapp > 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 > Fix For: SVN trunk > > Attachments: catalina.bat, catalina.properties, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] vu hong thuan updated OFBIZ-1738: --------------------------------- Attachment: (was: catalina.bat) > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] vu hong thuan updated OFBIZ-1738: --------------------------------- Attachment: (was: catalina.properties) > 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 > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] vu hong thuan updated OFBIZ-1738: --------------------------------- Attachment: catalina.properties catalina.bat Update for appserver template applied to tomcat 6 \framework\appserver\templates\tomcat6\ > 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 > Fix For: SVN trunk > > Attachments: catalina.bat, catalina.properties, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620658#action_12620658 ] BJ Freeman commented on OFBIZ-1738: ----------------------------------- could you put a link in the wiki http://docs.ofbiz.org/display/OFBTECH/Tomcat thanks. > 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 > Fix For: SVN trunk > > Attachments: catalina.bat, catalina.properties, 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] BJ Freeman updated OFBIZ-1738: ------------------------------ Comment: was deleted > 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 > Fix For: SVN trunk > > Attachments: catalina.bat, catalina.properties, 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. |
Free forum by Nabble | Edit this page |