catalina.home not being recognized by intellij
Asked Answered
S

1

0

I am using a property place holder to reference a file, it works when deployed, but intellij is not picking up the catalina home. I have tried setting windows environment varibale and path in intellij ide settings, makes no difference still shows an error (which borks my datasource in the ide) I could place the conf file in project directory instead, but then the project will not be portable to other tomcat installs without further jiggery pokery ....

Darcula oo eerr, catalina home is a problem

Surely there is a way that intellij will recognize and reference correctly ${catalina.home} within my spring application context ?

Sys variable is set up ok :

enter image description here

Sepulchral answered 28/11, 2012 at 13:35 Comment(0)
S
1

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.

Sepulchral answered 29/11, 2012 at 10:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.