You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by vanita jain <va...@vassoft.net> on 2009/10/01 10:20:25 UTC
Running multiple ofbiz code on different ports of tomcat
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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by "dhiraj.g" <dh...@nic.in>.
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
-----
dhirajgupta
--
View this message in context: http://ofbiz.135035.n4.nabble.com/Running-multiple-ofbiz-code-on-different-ports-of-tomcat-tp164202p4484495.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Amit Sharma <am...@hotwaxmedia.com>.
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
>
>
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Deepak Dixit <de...@hotwaxmedia.com>.
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
>
>
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Carsten Schinzer <c....@googlemail.com>.
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 <va...@vassoft.net>
>
> 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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Yashwant Dhakad <ya...@hotwaxmedia.com>.
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:amitagrawal.mitsgwl@gmail.com
> 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.
Re: Running multiple ofbiz code on different ports of tomcat
Posted by amitagrawal <am...@gmail.com>.
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
--
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.
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Jacques Le Roux <ja...@les7arts.com>.
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: toanilsoni@gmail.com
> To: user@ofbiz.apache.org
> 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 <de...@ittconsult.com> 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 <os...@yahoo.com>
> Reply-to: user@ofbiz.apache.org
> To: user@ofbiz.apache.org
> 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 | farouk@faroukalhassan.com
> www.bespokecode.co.uk
> Contact Me
>
> --- @ WiseStamp Signature. Get it now
>
> --- On Sat, 3/10/09, James McGill <ja...@ableengineering.com> wrote:
>
> From: James McGill <ja...@ableengineering.com>
> Subject: Re: Running multiple ofbiz code on different ports of tomcat
> To: user@ofbiz.apache.org
> Date: Saturday, 3 October, 2009, 23:05
>
> On Sat, Oct 3, 2009 at 4:01 AM, Vanita <va...@vassoft.net> 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
>
>
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Jacques Le Roux <ja...@les7arts.com>.
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: toanilsoni@gmail.com
To: user@ofbiz.apache.org
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 <de...@ittconsult.com> 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 <os...@yahoo.com>
Reply-to: user@ofbiz.apache.org
To: user@ofbiz.apache.org
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 | farouk@faroukalhassan.com
www.bespokecode.co.uk
Contact Me
--- @ WiseStamp Signature. Get it now
--- On Sat, 3/10/09, James McGill <ja...@ableengineering.com> wrote:
From: James McGill <ja...@ableengineering.com>
Subject: Re: Running multiple ofbiz code on different ports of tomcat
To: user@ofbiz.apache.org
Date: Saturday, 3 October, 2009, 23:05
On Sat, Oct 3, 2009 at 4:01 AM, Vanita <va...@vassoft.net> 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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by to...@gmail.com.
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 <
deyan.tsvetanov@ittconsult.com> 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 <os...@yahoo.com>
> Reply-to: user@ofbiz.apache.org
> To: user@ofbiz.apache.org
> 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 | farouk@faroukalhassan.com
> www.bespokecode.co.uk
> Contact Me
>
> --- @ WiseStamp Signature. Get it now
>
> --- On Sat, 3/10/09, James McGill <ja...@ableengineering.com>
> wrote:
>
> From: James McGill <ja...@ableengineering.com>
> Subject: Re: Running multiple ofbiz code on different ports of tomcat
> To: user@ofbiz.apache.org
> Date: Saturday, 3 October, 2009, 23:05
>
> On Sat, Oct 3, 2009 at 4:01 AM, Vanita <va...@vassoft.net> 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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Deyan Tsvetanov <de...@ittconsult.com>.
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 <os...@yahoo.com>
Reply-to: user@ofbiz.apache.org
To: user@ofbiz.apache.org
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 | farouk@faroukalhassan.com
www.bespokecode.co.uk
Contact Me
--- @ WiseStamp Signature. Get it now
--- On Sat, 3/10/09, James McGill <ja...@ableengineering.com> wrote:
From: James McGill <ja...@ableengineering.com>
Subject: Re: Running multiple ofbiz code on different ports of tomcat
To: user@ofbiz.apache.org
Date: Saturday, 3 October, 2009, 23:05
On Sat, Oct 3, 2009 at 4:01 AM, Vanita <va...@vassoft.net> 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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by farouk alhassan <os...@yahoo.com>.
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 | farouk@faroukalhassan.com
www.bespokecode.co.uk
Contact Me
--- @ WiseStamp Signature. Get it now
--- On Sat, 3/10/09, James McGill <ja...@ableengineering.com> wrote:
From: James McGill <ja...@ableengineering.com>
Subject: Re: Running multiple ofbiz code on different ports of tomcat
To: user@ofbiz.apache.org
Date: Saturday, 3 October, 2009, 23:05
On Sat, Oct 3, 2009 at 4:01 AM, Vanita <va...@vassoft.net> 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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by James McGill <ja...@ableengineering.com>.
On Sat, Oct 3, 2009 at 4:01 AM, Vanita <va...@vassoft.net> 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
Re: Running multiple ofbiz code on different ports of tomcat
Posted by Vanita <va...@vassoft.net>.
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.