Hi
I need to run ofbiz application on two different ports of tomcat. Can anyone provide me all the required steps for it? Thanks in advance. Regards Vanita Jain |
Hi Vanita,
You need to change port number on framework/base/config/ofbiz-containers.xml and framework/webapp/config/url.properties files. -- Amit Sharma vanita jain wrote: > Hi > > I need to run ofbiz application on two different ports of tomcat. > Can anyone provide me all the required steps for it? > > Thanks in advance. > > Regards > Vanita Jain > > |
In reply to this post by Vanita
Hello Vanita ,
This can help you: http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide Thanks & Regards ----- Deepak Dixit > Hi > > I need to run ofbiz application on two different ports of tomcat. > Can anyone provide me all the required steps for it? > > Thanks in advance. > > Regards > Vanita Jain > > |
In reply to this post by Vanita
It didn't solved my problem.
Kindly,tell me where else i need to make changes? Vanita
|
Vanita,
with the guidance given above you are able to control the listen port of your ofbiz instance. If I get your requirement correctly, you want to run two different instances of ofbiz running on the same machine using different ports to be accessed? So you need to have two copies of ofbiz in different logical paths on your machine (well, you could run with one copy, but then that concept works only on unix/linux and requires (a) deep level ofbiz config knowledge and (b) some extended symlinking). Well, moreover, your URLs will then not look nice. For example if you configure your instance of OFBiz to listen on ports 18080 ans 28080. then each user needs to know the appropriate ports to add into URI which will then look like: Instance A: http://localhost:18080/ecommerce/control/main Instance B: http://localhost:28080/ecommerce/control/main A very typical practice to "hide" these details from users is to use an Apache in front of your ofbiz that translates a certain URL into the destination using portmapping. Of course you could also have a network device (Content Switch, Load Balancer, etc.) do this mapping for you. Let me know if this goes the direction of your original question... Regards Carsten 2009/10/3 Vanita <[hidden email]> > > It didn't solved my problem. > Kindly,tell me where else i need to make changes? > > Vanita > > Vanita wrote: > > > > Hi > > > > I need to run ofbiz application on two different ports of tomcat. > > Can anyone provide me all the required steps for it? > > > > Thanks in advance. > > > > Regards > > Vanita Jain > > > > > > -- > View this message in context: > http://www.nabble.com/Running-multiple-ofbiz-code-on-different-ports-of-tomcat-tp25694873p25727738.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany |
In reply to this post by Vanita
On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[hidden email]> wrote:
> > It didn't solved my problem. > Kindly,tell me where else i need to make changes? > > You will have to change various ports in framework/base/config You may want to change the bind address from 0.0.0.0 to the address of a particular interface in ofbiz-containers.xml and then change various ports for the connectors in that file. (For instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).) I think there's also a JNDI port (1099) and a change here probably requires corresponding changes elsewhere. Personally, I think it's a better bet to use Apache as the front-end and redirect on a per-URL basis to a single appserver config. There are many benefits from using mod-proxy+mod-rewrite or AJP. We have several test / devel configurations of OFBiz, and use Xen VM's on CentOS to manage them. Then it's just a simple ProxyPass / Location config in Apache to give them outside names, and we can do stuff like host-based authentication, and it's easy to move things around. -- James McGill Phoenix AZ |
I remember listing all the files that needed modifying with regards to ofbiz earlier this year. if you search the forum using this email, you may find the post.
Farouk Alhassan Java Enterprise Developer www.faroukalhassan.com | [hidden email] www.bespokecode.co.uk Contact Me --- @ WiseStamp Signature. Get it now --- On Sat, 3/10/09, James McGill <[hidden email]> wrote: From: James McGill <[hidden email]> Subject: Re: Running multiple ofbiz code on different ports of tomcat To: [hidden email] Date: Saturday, 3 October, 2009, 23:05 On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[hidden email]> wrote: > > It didn't solved my problem. > Kindly,tell me where else i need to make changes? > > You will have to change various ports in framework/base/config You may want to change the bind address from 0.0.0.0 to the address of a particular interface in ofbiz-containers.xml and then change various ports for the connectors in that file. (For instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).) I think there's also a JNDI port (1099) and a change here probably requires corresponding changes elsewhere. Personally, I think it's a better bet to use Apache as the front-end and redirect on a per-URL basis to a single appserver config. There are many benefits from using mod-proxy+mod-rewrite or AJP. We have several test / devel configurations of OFBiz, and use Xen VM's on CentOS to manage them. Then it's just a simple ProxyPass / Location config in Apache to give them outside names, and we can do stuff like host-based authentication, and it's easy to move things around. -- James McGill Phoenix AZ |
Here all the files you need to change:
framework/base/config/ofbiz-containers.xml framework/base/config/jndi.properties framework/base/config/jndiservers.xml framework/base/config/rmi-containers.xml framework/service/config/serviceengine.xml framework/webapp/config/url.properties In branch 9.04 you are not able to change the bind interface of JNDI ( done in ofbiz-containers.xml ). There is a patch that fixes that isue: https://issues.apache.org/jira/browse/OFBIZ-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You need to checkout ofbiz from trunk. Cheers, Deyan -----Original Message----- From: farouk alhassan <[hidden email]> Reply-to: [hidden email] To: [hidden email] Subject: Re: Running multiple ofbiz code on different ports of tomcat Date: Sun, 4 Oct 2009 05:52:42 -0700 (PDT) I remember listing all the files that needed modifying with regards to ofbiz earlier this year. if you search the forum using this email, you may find the post. Farouk Alhassan Java Enterprise Developer www.faroukalhassan.com | [hidden email] www.bespokecode.co.uk Contact Me --- @ WiseStamp Signature. Get it now --- On Sat, 3/10/09, James McGill <[hidden email]> wrote: From: James McGill <[hidden email]> Subject: Re: Running multiple ofbiz code on different ports of tomcat To: [hidden email] Date: Saturday, 3 October, 2009, 23:05 On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[hidden email]> wrote: > > It didn't solved my problem. > Kindly,tell me where else i need to make changes? > > You will have to change various ports in framework/base/config You may want to change the bind address from 0.0.0.0 to the address of a particular interface in ofbiz-containers.xml and then change various ports for the connectors in that file. (For instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).) I think there's also a JNDI port (1099) and a change here probably requires corresponding changes elsewhere. Personally, I think it's a better bet to use Apache as the front-end and redirect on a per-URL basis to a single appserver config. There are many benefits from using mod-proxy+mod-rewrite or AJP. We have several test / devel configurations of OFBiz, and use Xen VM's on CentOS to manage them. Then it's just a simple ProxyPass / Location config in Apache to give them outside names, and we can do stuff like host-based authentication, and it's easy to move things around. -- James McGill Phoenix AZ |
Vanita,If you want to run multiple OFBiz code on different ports then use the attached patch.I Hope it would work.On Sun, Oct 4, 2009 at 6:31 PM, Deyan Tsvetanov <[hidden email]> wrote: Here all the files you need to change: -- Anil Soni +91-9930302283cell multiple-instance-setup.patch.txt (4K) Download Attachment |
Administrator
|
I think we should definitively introduce a token (+x) to pass from the command line for this stuff, or a property in general.properties or both (flexible).
Jacques ----- Original Message ----- From: [hidden email] To: [hidden email] Sent: Monday, October 12, 2009 9:26 PM Subject: Re: Running multiple ofbiz code on different ports of tomcat Vanita, If you want to run multiple OFBiz code on different ports then use the attached patch. I Hope it would work. On Sun, Oct 4, 2009 at 6:31 PM, Deyan Tsvetanov <[hidden email]> wrote: Here all the files you need to change: framework/base/config/ofbiz-containers.xml framework/base/config/jndi.properties framework/base/config/jndiservers.xml framework/base/config/rmi-containers.xml framework/service/config/serviceengine.xml framework/webapp/config/url.properties In branch 9.04 you are not able to change the bind interface of JNDI ( done in ofbiz-containers.xml ). There is a patch that fixes that isue: https://issues.apache.org/jira/browse/OFBIZ-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You need to checkout ofbiz from trunk. Cheers, Deyan -----Original Message----- From: farouk alhassan <[hidden email]> Reply-to: [hidden email] To: [hidden email] Subject: Re: Running multiple ofbiz code on different ports of tomcat Date: Sun, 4 Oct 2009 05:52:42 -0700 (PDT) I remember listing all the files that needed modifying with regards to ofbiz earlier this year. if you search the forum using this email, you may find the post. Farouk Alhassan Java Enterprise Developer www.faroukalhassan.com | [hidden email] www.bespokecode.co.uk Contact Me --- @ WiseStamp Signature. Get it now --- On Sat, 3/10/09, James McGill <[hidden email]> wrote: From: James McGill <[hidden email]> Subject: Re: Running multiple ofbiz code on different ports of tomcat To: [hidden email] Date: Saturday, 3 October, 2009, 23:05 On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[hidden email]> wrote: > > It didn't solved my problem. > Kindly,tell me where else i need to make changes? > > You will have to change various ports in framework/base/config You may want to change the bind address from 0.0.0.0 to the address of a particular interface in ofbiz-containers.xml and then change various ports for the connectors in that file. (For instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).) I think there's also a JNDI port (1099) and a change here probably requires corresponding changes elsewhere. Personally, I think it's a better bet to use Apache as the front-end and redirect on a per-URL basis to a single appserver config. There are many benefits from using mod-proxy+mod-rewrite or AJP. We have several test / devel configurations of OFBiz, and use Xen VM's on CentOS to manage them. Then it's just a simple ProxyPass / Location config in Apache to give them outside names, and we can do stuff like host-based authentication, and it's easy to move things around. -- James McGill Phoenix AZ -- Anil Soni +91-9930302283cell |
In reply to this post by anil.soni
Hello Sir,this is amit agrawal.Actually I am creating a Application Demo of Ofbiz Framework with PostGres,So plz let me know how should i make a that demo.
My Email id:amitagrawal.mitsgwl@gmail.com Cell No.:+91-9970971709 |
In reply to this post by Amit Sharma-10
Hi Amit Sharma,
Your answer is for a single module when port is busy.when it gives the Bind Exception(0.0.0.0.8080). Thanks Dhiraj Gupta 9990220686
Dhiraj Gupta
|
In reply to this post by amitagrawal
Hi Amit,
See this link for technical setup guide for OFBiz https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html Thanks & Regard -- Yashwant Dhakad On 03/19/2012 04:26 PM, amitagrawal wrote: > Hello Sir,this is amit agrawal.Actually I am creating a Application Demo of > Ofbiz Framework with PostGres,So plz let me know how should i make a that > demo. > > My Email id:[hidden email] > Cell No.:+91-9970971709 > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Running-multiple-ofbiz-code-on-different-ports-of-tomcat-tp164202p4484373.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
In reply to this post by Vanita
Hello Vanita,I have created one demo application inside hot-deploy folder.But I want to make 1 application with database.So plz if u have any source code then share with me please.
Thanks & Regards Amit Agrawal amitagrawal.mitsgwl@gmail.com 9970971709 |
Administrator
|
In reply to this post by Jacques Le Roux
This has been finally completely implemented in trunk, and backported in R13.07, so will be available in next release.
Are concerned the following ant targets: run-tests start start-* status stop Check "ant -p" for more, Le 12/10/2009 22:54, Jacques Le Roux a écrit : > I think we should definitively introduce a token (+x) to pass from the command line for this stuff, or a property in general.properties or both (flexible). > > Jacques > ----- Original Message ----- > From: [hidden email] > To: [hidden email] > Sent: Monday, October 12, 2009 9:26 PM > Subject: Re: Running multiple ofbiz code on different ports of tomcat > > > Vanita, > If you want to run multiple OFBiz code on different ports then use the attached patch. > I Hope it would work. > > > > On Sun, Oct 4, 2009 at 6:31 PM, Deyan Tsvetanov <[hidden email]> wrote: > > Here all the files you need to change: > > > framework/base/config/ofbiz-containers.xml > > framework/base/config/jndi.properties > framework/base/config/jndiservers.xml > framework/base/config/rmi-containers.xml > framework/service/config/serviceengine.xml > > framework/webapp/config/url.properties > > > In branch 9.04 you are not able to change the bind interface of JNDI > ( done in ofbiz-containers.xml ). > There is a patch that fixes that isue: > https://issues.apache.org/jira/browse/OFBIZ-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > > You need to checkout ofbiz from trunk. > > Cheers, > Deyan > > > > > -----Original Message----- > From: farouk alhassan <[hidden email]> > Reply-to: [hidden email] > To: [hidden email] > Subject: Re: Running multiple ofbiz code on different ports of tomcat > > Date: Sun, 4 Oct 2009 05:52:42 -0700 (PDT) > > > I remember listing all the files that needed modifying with regards to ofbiz earlier this year. if you search the forum using this email, you may find the post. > > Farouk Alhassan > Java Enterprise Developer > www.faroukalhassan.com | [hidden email] > www.bespokecode.co.uk > Contact Me > > --- @ WiseStamp Signature. Get it now > > --- On Sat, 3/10/09, James McGill <[hidden email]> wrote: > > From: James McGill <[hidden email]> > Subject: Re: Running multiple ofbiz code on different ports of tomcat > To: [hidden email] > Date: Saturday, 3 October, 2009, 23:05 > > On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[hidden email]> wrote: > > > > > It didn't solved my problem. > > Kindly,tell me where else i need to make changes? > > > > > > You will have to change various ports in framework/base/config > > You may want to change the bind address from 0.0.0.0 to the address of a > particular interface in ofbiz-containers.xml > and then change various ports for the connectors in that file. (For > instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).) > > I think there's also a JNDI port (1099) and a change here probably requires > corresponding changes elsewhere. > > Personally, I think it's a better bet to use Apache as the front-end and > redirect on a per-URL basis to a single appserver config. > There are many benefits from using mod-proxy+mod-rewrite or AJP. > > We have several test / devel configurations of OFBiz, and use Xen VM's on > CentOS to manage them. Then it's just a simple > ProxyPass / Location config in Apache to give them outside names, and we can > do stuff like host-based authentication, and it's easy to move things > around. > > > -- > James McGill > Phoenix AZ > > > > > > > > > -- > Anil Soni > +91-9930302283cell > > |
Free forum by Nabble | Edit this page |