title: How can I introduce path variables in weblogic.xml from web.xml?
body: <p>I am using Weblogic 12c to deploy my springboot application. I am trying to introduce path variables from web.xml into weblogic.xml so that I will only have to modify one file [web.xml] rather than two files [web.xml, weblogic.xml] when deploying to different environments [ie. Windows, Linux].
  </p>
  
  <p><strong>web.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;!-- For virtual directory mapping --&gt;
  &lt;env-entry&gt;
      &lt;env-entry-name&gt;local_path&lt;/env-entry-name&gt;
      &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
      &lt;env-entry-value&gt;C:\&lt;/env-entry-value&gt;
      &lt;!--&lt;env-entry-value&gt;/&lt;/env-entry-value&gt;--&gt;
  &lt;/env-entry&gt;
  
  &lt;env-entry&gt;
      &lt;env-entry-name&gt;url_pattern&lt;/env-entry-name&gt;
      &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
      &lt;env-entry-value&gt;test/*&lt;/env-entry-value&gt;
      &lt;!--&lt;env-entry-value&gt;test/&lt;/env-entry-value&gt;--&gt;
  &lt;/env-entry&gt;
  </code></pre>
  
  <p><strong>weblogic.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;virtual-directory-mapping&gt;
      &lt;local-path&gt;${local_path}&lt;/local-path&gt;
      &lt;url-pattern&gt;${url_pattern}&lt;/url-pattern&gt;
  &lt;/virtual-directory-mapping&gt;
  </code></pre>
  
  <p>However, this is not working. How should this be done?</p>