You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Grant Edwards <a4...@yahoo.com> on 2009/04/28 20:48:37 UTC

Change of ports numbers

Hi,

In a development environment I would like to run a number of different OFBiz instances each with its own set of port numbers. Is it a case of simply finding all occurances of 8080 and changing them to 18080 and 8443 to 18443?

Kind regards

Grant 



      

Re: Change of ports numbers

Posted by Jacques Le Roux <ja...@les7arts.com>.
Did you do it Geronimo's way ? In such case, a patch would be appreciated.. (but this mean either .sh and .bat files IRRW)

Thanks

Jacques

From: "Grant Edwards" <a4...@yahoo.com>
> Hi
>
> Jacques, you are correct its a fairly easy process to change the port numbers.
>
> Its a little clumsy to manage thought when your dev team relies on the eclipse annotations to tell them what has changed in their 
> local work space. Obviously we dont want to submit these port number changes. Below is a list of file I change relating to OFBiz 
> release 718913, once change it OFBiz worked with no problems.
>
> Regrds
>
> Grant
>
> customofbiz-r718913$ svn st
> M      framework/common/servicedef/services_test.xml
> M      framework/common/src/org/ofbiz/common/CommonServices.java
> M      framework/jetty/src/org/ofbiz/jetty/container/JettyContainer.java
> M      framework/service/config/serviceengine.xml
> M      framework/appserver/templates/tomcat55/server.xml
> M      framework/appserver/templates/tomcat6/server.xml
> M      framework/base/config/test-containers.xml
> M      framework/base/config/jetty-containers.xml
> M      framework/base/config/ofbiz-containers.xml
> M      framework/webapp/config/url.properties
> M      framework/webapp/src/org/ofbiz/webapp/test/XmlRpcTests.java
>
>
>
>
>
> ________________________________
> From: Jacques Le Roux <ja...@les7arts.com>
> To: user@ofbiz.apache.org
> Sent: Tuesday, April 28, 2009 9:52:05 PM
> Subject: Re: Change of ports numbers
>
> Yes
>
> At a moment I thought about creating a PortOffset (like it's done in Geronimo), but never found the time to do it (and it's pretty
> trivial anyway)
>
> Jacques
>
> From: "Grant Edwards" <a4...@yahoo.com>
>> Hi,
>>
>> In a development environment I would like to run a number of different OFBiz instances each with its own set of port numbers. Is
>> it a case of simply finding all occurances of 8080 and changing them to 18080 and 8443 to 18443?
>>
>> Kind regards
>>
>> Grant
>>
>>
>>
>>
>
>
> 



Re: Change of ports numbers

Posted by Adrian Crum <ad...@hlmksw.com>.
Maybe you could keep the port changes out of your local repository, and 
have a patch that makes the port changes when you're ready to deploy. 
Then there would be no impact on your developers.

-Adrian

Grant Edwards wrote:
> Hi
> 
> Jacques, you are correct its a fairly easy process to change the port numbers.
> 
> Its a little clumsy to manage thought when your dev team relies on the eclipse annotations to tell them what has changed in their local work space. Obviously we dont want to submit these port number changes. Below is a list of file I change relating to OFBiz release 718913, once change it OFBiz worked with no problems.
> 
> Regrds
> 
> Grant
> 
> customofbiz-r718913$ svn st
> M      framework/common/servicedef/services_test.xml
> M      framework/common/src/org/ofbiz/common/CommonServices.java
> M      framework/jetty/src/org/ofbiz/jetty/container/JettyContainer.java
> M      framework/service/config/serviceengine.xml
> M      framework/appserver/templates/tomcat55/server.xml
> M      framework/appserver/templates/tomcat6/server.xml
> M      framework/base/config/test-containers.xml
> M      framework/base/config/jetty-containers.xml
> M      framework/base/config/ofbiz-containers.xml
> M      framework/webapp/config/url.properties
> M      framework/webapp/src/org/ofbiz/webapp/test/XmlRpcTests.java
> 
> 
> 
> 
> 
> ________________________________
> From: Jacques Le Roux <ja...@les7arts.com>
> To: user@ofbiz.apache.org
> Sent: Tuesday, April 28, 2009 9:52:05 PM
> Subject: Re: Change of ports numbers
> 
> Yes
> 
> At a moment I thought about creating a PortOffset (like it's done in Geronimo), but never found the time to do it (and it's pretty 
> trivial anyway)
> 
> Jacques
> 
> From: "Grant Edwards" <a4...@yahoo.com>
>> Hi,
>>
>> In a development environment I would like to run a number of different OFBiz instances each with its own set of port numbers. Is 
>> it a case of simply finding all occurances of 8080 and changing them to 18080 and 8443 to 18443?
>>
>> Kind regards
>>
>> Grant
>>
>>
>>
>>
> 
> 
>       

Re: Change of ports numbers

Posted by Grant Edwards <a4...@yahoo.com>.
Hi

Jacques, you are correct its a fairly easy process to change the port numbers.

Its a little clumsy to manage thought when your dev team relies on the eclipse annotations to tell them what has changed in their local work space. Obviously we dont want to submit these port number changes. Below is a list of file I change relating to OFBiz release 718913, once change it OFBiz worked with no problems.

Regrds

Grant

customofbiz-r718913$ svn st
M      framework/common/servicedef/services_test.xml
M      framework/common/src/org/ofbiz/common/CommonServices.java
M      framework/jetty/src/org/ofbiz/jetty/container/JettyContainer.java
M      framework/service/config/serviceengine.xml
M      framework/appserver/templates/tomcat55/server.xml
M      framework/appserver/templates/tomcat6/server.xml
M      framework/base/config/test-containers.xml
M      framework/base/config/jetty-containers.xml
M      framework/base/config/ofbiz-containers.xml
M      framework/webapp/config/url.properties
M      framework/webapp/src/org/ofbiz/webapp/test/XmlRpcTests.java





________________________________
From: Jacques Le Roux <ja...@les7arts.com>
To: user@ofbiz.apache.org
Sent: Tuesday, April 28, 2009 9:52:05 PM
Subject: Re: Change of ports numbers

Yes

At a moment I thought about creating a PortOffset (like it's done in Geronimo), but never found the time to do it (and it's pretty 
trivial anyway)

Jacques

From: "Grant Edwards" <a4...@yahoo.com>
> Hi,
>
> In a development environment I would like to run a number of different OFBiz instances each with its own set of port numbers. Is 
> it a case of simply finding all occurances of 8080 and changing them to 18080 and 8443 to 18443?
>
> Kind regards
>
> Grant
>
>
>
> 


      

Re: Change of ports numbers

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes

At a moment I thought about creating a PortOffset (like it's done in Geronimo), but never found the time to do it (and it's pretty 
trivial anyway)

Jacques

From: "Grant Edwards" <a4...@yahoo.com>
> Hi,
>
> In a development environment I would like to run a number of different OFBiz instances each with its own set of port numbers. Is 
> it a case of simply finding all occurances of 8080 and changing them to 18080 and 8443 to 18443?
>
> Kind regards
>
> Grant
>
>
>
> 



Re: Change of ports numbers

Posted by Jacques Le Roux <jl...@les7arts.com>.
Usually you don't need to change all those files.

framework/base/config/ofbiz-containers.xml
and
framework/webapp/config/url.properties

should be enough. Then if when needed you may change other files depending of your context of work... Note that it's not recommended 
to touch core java files. Only if required properties and config xml files...

This said we could maybe parametrize CommonServices.java using url.properties ... ;o)

Jacques

From: "adnane" <mo...@hotmail.com>
> yes, it's easy to do it,because i did the same operation like you,so i advice
> u to change the following files :
>
> framework/common/servicedef/services_test.xml
>
> framework/common/src/org/ofbiz/common/CommonServices.java
>
> framework/jetty/src/org/ofbiz/jetty/container/JettyContainer.java
>
> framework/service/config/serviceengine.xml
>
> framework/appserver/templates/tomcat55/server.xml
>
> framework/appserver/templates/tomcat6/server.xml
>
> framework/base/config/test-containers.xml
>
> framework/base/config/jetty-containers.xml
>
> framework/base/config/ofbiz-containers.xml
>
> framework/webapp/config/url.properties
>
> but before you should verify that u set the variable home java.
>
> ;)
>
> if u find a probleme concerning this,don't hesitate to contact me on my
> email : moslih_adnane1@hotmail.com
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Change-of-ports-numbers-tp151309p3441829.html
> Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: Change of ports numbers

Posted by adnane <mo...@hotmail.com>.
yes, it's easy to do it,because i did the same operation like you,so i advice
u to change the following files :

framework/common/servicedef/services_test.xml

framework/common/src/org/ofbiz/common/CommonServices.java

framework/jetty/src/org/ofbiz/jetty/container/JettyContainer.java

framework/service/config/serviceengine.xml

framework/appserver/templates/tomcat55/server.xml

framework/appserver/templates/tomcat6/server.xml
	
framework/base/config/test-containers.xml

framework/base/config/jetty-containers.xml

framework/base/config/ofbiz-containers.xml

framework/webapp/config/url.properties

but before you should verify that u set the variable home java.

;)

if u find a probleme concerning this,don't hesitate to contact me on my
email : moslih_adnane1@hotmail.com

--
View this message in context: http://ofbiz.135035.n4.nabble.com/Change-of-ports-numbers-tp151309p3441829.html
Sent from the OFBiz - User mailing list archive at Nabble.com.