Got the svn update.
 Thanks

On Tue, Jan 10, 2012 at 9:54 AM, Afkham Azeez <[email protected]> wrote:

> I have made these changes. Thanks for the suggestion.
>
>
> On Tue, Jan 10, 2012 at 9:18 AM, Afkham Azeez <[email protected]> wrote:
>
>> +1. I'll make the changes.
>>
>> On Tue, Jan 10, 2012 at 7:59 AM, Achala Aponso <[email protected]> wrote:
>>
>>> Hi Azeez,
>>>
>>> The ServerUtils class (core/integration/framework/utils)  uses following
>>> ports.
>>>
>>> *[1] private final static int DEFAULT_HTTPS_PORT = 9443;
>>>  private final static int DEFAULT_HTTP_PORT = 9763;*
>>>
>>> And those values are used by the startServerUsingCarbonHome method of
>>> ServerUtils class
>>>
>>> *[2] ClientConnectionUtil.waitForPort(DEFAULT_HTTPS_PORT + portOffset,
>>>                                              DEFAULT_START_STOP_WAIT_MS,
>>> false);
>>>             ClientConnectionUtil.waitForPort(DEFAULT_HTTP_PORT +
>>> portOffset,
>>>                                              DEFAULT_START_STOP_WAIT_MS,
>>> false);
>>> *
>>>
>>> GS uses port 8443/8080 and causes issues due to above.
>>>
>>> Therefore, I would like to suggest the following as a solution for the
>>> issue.
>>>
>>> Replace *
>>> DEFAULT_HTTPS_PORT of [2] *with 
>>> *Integer.parseInt(FrameworkSettings.HTTPS_PORT
>>> )*
>>> *DEFAULT_HTTP_PORT of [2] *with 
>>> *Integer.parseInt(FrameworkSettings.HTTP_PORT
>>> )*
>>> and call the *FrameworkSettings.init()*; method prior to  *serverUtils.*
>>> *startServerUsingCarbonHome(**carbonHome, portOffset)*; in *startServer()
>>> *method of *TestServerManager.java* (core/integration/framework).
>>>
>>> (*FrameworkSettings.init() *will set the appropriate port values)
>>> String httpsPort = System.getProperty("https.port");
>>> String httpPort = System.getProperty("http.port");
>>>
>>>
>>> shutdown() and shutdownServer(int portOffset) methods of
>>> ServerUtils.java,  can also use the
>>> Integer.parseInt(FrameworkSettings.HTTPS_PORT)* *instead of using* 
>>> **"DEFAULT_HTTPS_PORT
>>> = 9443.*"
>>>
>>> Thanks,
>>>
>>> Achala Aponso
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: [email protected] Mobile: +94 (77) 5234925
>>> Blog: http://achala11.blogspot.com/
>>>
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>**
>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
Achala Aponso
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: [email protected] Mobile: +94 (77) 5234925
Blog: http://achala11.blogspot.com/
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to