Change of ports numbers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Change of ports numbers

africa4you
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



     
Reply | Threaded
Open this post in threaded view
|

Re: Change of ports numbers

Jacques Le Roux
Administrator
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" <[hidden email]>

> 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
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Change of ports numbers

africa4you
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 <[hidden email]>
To: [hidden email]
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" <[hidden email]>

> 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
>
>
>
>


     
Reply | Threaded
Open this post in threaded view
|

Re: Change of ports numbers

Jacques Le Roux
Administrator
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" <[hidden email]>

> 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 <[hidden email]>
> To: [hidden email]
> 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" <[hidden email]>
>> 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
>>
>>
>>
>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Change of ports numbers

Adrian Crum
In reply to this post by africa4you
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 <[hidden email]>
> To: [hidden email]
> 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" <[hidden email]>
>> 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
>>
>>
>>
>>
>
>
>      
Reply | Threaded
Open this post in threaded view
|

Re: Change of ports numbers

adnane
In reply to this post by africa4you
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
Reply | Threaded
Open this post in threaded view
|

Re: Change of ports numbers

Jacques Le Roux-3
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" <[hidden email]>

> 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 : [hidden email]
>
> --
> 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.