title: WebLogic doesn't use contextpath for loading javascript files
body: <p>I created one war which contains my backend application(Spring Boot) and frontend(Angular2). In frontend application i use Angular CLI for creating distribution files.<br>
  I need to deploy this war to WebLogic application server.<br>
  For building frontend project, i run"<code>ng build</code>" command through exec-maven-plugin.  </p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.5.0&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;exec-npm-install&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;workingDirectory&gt;${project.basedir}/src/main/ngapp&lt;/workingDirectory&gt;
                  &lt;executable&gt;npm.cmd&lt;/executable&gt;
                  &lt;arguments&gt;
                      &lt;argument&gt;install&lt;/argument&gt;
                  &lt;/arguments&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;exec&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
          &lt;execution&gt;
              &lt;id&gt;exec-npm-ng-build&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;workingDirectory&gt;${project.basedir}/src/main/ngapp&lt;/workingDirectory&gt;
                  &lt;executable&gt;ng.cmd&lt;/executable&gt;
                  &lt;arguments&gt;
                      &lt;argument&gt;build&lt;/argument&gt;
                      &lt;argument&gt;--base-href=/applicationName&lt;/argument&gt;
                  &lt;/arguments&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;exec&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Content of <code>index.html</code>:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;CometTest&lt;/title&gt;
    &lt;base href="/applicationName"&gt;
  
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link rel="icon" type="image/x-icon" href="favicon.ico"&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;app&gt;Loading...&lt;/app&gt;
  &lt;script type="text/javascript" src="inline.bundle.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="polyfills.bundle.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="scripts.bundle.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="styles.bundle.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="vendor.bundle.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="main.bundle.js"&gt;&lt;/script&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When i deployed resulting war to Tomcat with <code>contextPath='applicationName'</code> on my local machine, it's working fine.<br>
  But when i deployed to remote WebLogic it throws error while loading javascript files.</p>
  
  <pre><code>Failed to load resource: the server responded with a status of 404 (Not Found) http://24.211.213.46:7611/inline.bundle.js
  </code></pre>
  
  <p>Why does WebLogic try to download files without <code>applicationName</code> in url?<br>
  And i can reach this javascript file by following url:</p>
  
  <pre><code>http://24.211.213.46:7611/applicationName/inline.bundle.js
  </code></pre>