Unable to connect to middleware. Service ch-core/cuba_TrustedClientService is not registered in LocalServiceDirectory

Hi guys, please help. I am getting an error when starting the application in Cuba Platform. I use postgres for the DB and check connection to the database is okay, the database is created and running. However, the log says java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection. Here’s the full log attached, please give me an idea how to fix it.

log.txt (50.2 KB)

Ok it sorted out. As I cloned the project from a remote git repository there were 3 data stores and their beans specified in spring.xml. The app could not establish connection to those data stores nor create beans. I deleted those data stores from the project as well as their references in spring.xml. Then I created my own data store and database. Now the app starts and runs well.