title: Intellij Idea. How to pass jaas.config through tomcat server VM options?
body: <p>I'm trying to pass a path to <code>jaas.conf</code> through intellij idea tomcat server vm options.</p>
  
  <p>I tried the following vm options:</p>
  
  <p><code>-Djava.security.auth.login.config=%CATALINA_BASE%/conf/jaas.config</code></p>
  
  <p><code>-Djava.security.auth.login.config=$CATALINA_BASE$/conf/jaas.config</code></p>
  
  <p><code>-Djava.security.auth.login.config=$CATALINA_BASE/conf/jaas.config</code></p>
  
  <p>They all are not working. The error is like this:</p>
  
  <p><code>java.lang.SecurityException: $CATALINA_BASE$/conf/jaas.config (No such file or directory)</code></p>
  
  <p>The only solution that works is to use an absolute path to intellij idea tomcat server directory:</p>
  
  <p><code>-Djava.security.auth.login.config=C:\Users\myUser\.IntelliJIdea13\system\tomcat\tomcat_(1)_myProject\conf\jaas.config</code></p>
  
  <p>Is there a way to pass CATALINA_BASE in intellij idea tomcat server vm options?</p>