AnsweredAssumed Answered

PostgresSqlException with source code

Question asked by sagarieduri on Aug 16, 2016
Hello,
       I have downloaded the latest source code of activiti. I changed the db.properties file as follows :
db=postgres
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost:5432/WorkflowEngine
jdbc.username=postgres
jdbc.password=password

I have added the postgres dependency also.while I'm trying to deploy through 'intellij idea' it is working fine by pointing to the correct database,with the same code i  have created a war file and tried to deploy through tomcat directly by placing the war inside webapps.
Here i'm getting the exception like :

Postgresql : Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections

Can anyone help me to  resolve this error.

Outcomes