Hello Mailinglist
I'm trying to run multiple instances of Ofbiz on a single PC. So I have to change the Ports of the instances. What do i have to do? I found several threads saving i have to change it in many files and these posts are really old ( < 2009). So whats the best way to change the ports? Thank you in advance, Oliver Michalke smime.p7s (4K) Download Attachment |
That should be in the follow files:
OFBIZ_HOME/framework/base/config/ofbiz-container.xml And file OFBIZ_HOME/framework/webapp/config/url.properties — Sent from Mailbox for iPhone On Thu, Dec 12, 2013 at 10:59 PM, Oliver Michalke <[hidden email]> wrote: > Hello Mailinglist > I'm trying to run multiple instances of Ofbiz on a single PC. So I have > to change the Ports of the instances. What do i have to do? I found > several threads saving i have to change it in many files and these posts > are really old ( < 2009). > So whats the best way to change the ports? > Thank you in advance, > Oliver Michalke |
In reply to this post by Oliver Michalke
Hi Oliver,
You have to change ofbiz-containers.xml (search the file in install folder) file. You can search (8080) in section http and change the required port. Also change the https port (8443) below this setting. Sarang Sent from BlackBerry® on Airtel -----Original Message----- From: Oliver Michalke <[hidden email]> Date: Thu, 12 Dec 2013 16:00:23 To: <[hidden email]> Reply-To: [hidden email] Subject: Changing the Ofbiz Ports Hello Mailinglist I'm trying to run multiple instances of Ofbiz on a single PC. So I have to change the Ports of the instances. What do i have to do? I found several threads saving i have to change it in many files and these posts are really old ( < 2009). So whats the best way to change the ports? Thank you in advance, Oliver Michalke |
In reply to this post by Oliver Michalke
First, thank you [hidden email] and [hidden email] for your
replies. Now i just got a problem with it. I've got the latest ofbiz checked out (this morning) and i made a fulltext search over the complete project for 8080. I found several hard coded "localhost:8080/..." code and, but i didn't find a 8080 in the "OFBIZ_HOME/framework/base/config/ofbiz-container.xml", as i was expecting. There are some properties defined with 8080 in: framework/catalina/ofbiz-component.xml framework/webapp/config/url.properties specialpurpose/jetty/ofbiz-component.xml I'm confused from all the "http://localhost:8080" and every other hardcoded port in any file... Anyways... when I change the ports like: 8080 -> 8081 8443 -> 8444 8009 -> 8010 that seem to do the trick: [java] 2013-12-12 17:23:28,586 (main) [ CatalinaContainer.java:256:INFO ] Connector AJP/1.3 @ 8010 - not-secure [org.apache.coyote.ajp.AjpProtocol] started. [java] 2013-12-12 17:23:28,586 (main) [ CatalinaContainer.java:253:INFO ] Connector "http-bio-0.0.0.0-8081" @ 8081 - not-secure [org.apache.coyote.http11.Http11Protocol] started. [java] 2013-12-12 17:23:28,586 (main) [ CatalinaContainer.java:253:INFO ] Connector "http-bio-0.0.0.0-8444" @ 8444 - secure [org.apache.coyote.http11.Http11Protocol] started. I hope this will do it. Am 12.12.2013 16:00, schrieb Oliver Michalke: > Hello Mailinglist > > I'm trying to run multiple instances of Ofbiz on a single PC. So I > have to change the Ports of the instances. What do i have to do? I > found several threads saving i have to change it in many files and > these posts are really old ( < 2009). > So whats the best way to change the ports? > > Thank you in advance, > > Oliver Michalke > smime.p7s (4K) Download Attachment |
Administrator
|
In reply to this post by Oliver Michalke
If you use trunk or R13.07
ant start -Dportoffset=portnumber will do it ant -p is your friend Jacques On Thursday, December 12, 2013 4:00 PM Oliver Michalke <[hidden email]> wrote: > Hello Mailinglist > > I'm trying to run multiple instances of Ofbiz on a single PC. So I have > to change the Ports of the instances. What do i have to do? I found > several threads saving i have to change it in many files and these posts > are really old ( < 2009). > So whats the best way to change the ports? > > Thank you in advance, > > Oliver Michalke |
OK, thats perfect. Thank you very much
Jacques Le Roux <[hidden email]> hat am 12. Dezember 2013 um 18:35 geschrieben: > If you use trunk or R13.07 > > ant start -Dportoffset=portnumber > > will do it > > ant -p > is your friend > > Jacques > > On Thursday, December 12, 2013 4:00 PM Oliver Michalke <[hidden email]> wrote: > > Hello Mailinglist > > > > I'm trying to run multiple instances of Ofbiz on a single PC. So I have > > to change the Ports of the instances. What do i have to do? I found > > several threads saving i have to change it in many files and these posts > > are really old ( < 2009). > > So whats the best way to change the ports? > > > > Thank you in advance, > > > > Oliver Michalke |
In reply to this post by Oliver Michalke
I think it depends on the version, for my simple tests I simply changed
./framework/base/config/ofbiz-containers.xml: <property name="port" value="8088"/> [current stable] and it works New versions use some "urls" named file. I remember some code changes about this. But I did not test it. |
Free forum by Nabble | Edit this page |