Apparently this is an open bug. However the workaround for me is to simply copy the properties file into project workspace (in my case the resources direcrtory), but keep the applicationContext.xml pointing at ${catalina.home}
.
Intellij then picks up the property values and then the datasource can be set up easily.