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