Resolve RTC-5260 and RTC-5301 error in Oracle Warehouse Builder (OWB)

In OWB, I was getting following error: 
RTC-5260:Failed to connect to Control center, Please check you provided the correct Host, user, password & service name
RTC-5301:The control center service is not currently available