Cannot open url. please check this url is correct
<p>I'm developing a very simple Java web app with Tomcat (Maven Project) in Intellij (Version 14.0.3). </p>

<p>When I compile and deploy the package (command: "<code>mvn clean package</code>: using Intellij) and then run the program 
I get a popup saying :</p>

<blockquote>
<pre><code>Cannot open url. Please check this url is correct. 
</code></pre>
</blockquote>

<p>The URL is "<code>http://localhost:8080/TimeDisplay/ShowTime.html</code>". </p>

<p>Needless to say, when I try accessing this URL directly through the browser I get to the page I created.</p>

<p>Here are the relevant fields of the project's Run Configuration:</p>

<ul>
<li><p><strong>Application Server</strong>: Tomcat 9.0.0.M3</p></li>
<li><p><strong>Open browser</strong>: After launch checked with Firefox as the chosen browser. The link is the same as the one I get in the error.</p></li>
<li><p><strong>On 'Update' action</strong>: Restart server</p></li>
<li><p><strong>On frame deactivation</strong>: Do nothing</p></li>
<li><p><strong>Tomcat Server Settings</strong>:</p></li>
<li><strong>HTTP port</strong>: 8080</li>
<li><strong>JMX port</strong>: 1099</li>
</ul>

<p>Under the deployment tab I added "TimeDisplay:war exploded" (<em>TimeDisplay is the name of my project</em>).</p>

<p>My <code>pom.xml</code> is as follows:</p>

<pre><code>&lt;project xmlns="removed link due to low stackoverflow reputation" xmlns:xsi="removed link due to low stackoverflow reputation"
 xsi:schemaLocation="removed link due to low stackoverflow reputation"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.amin&lt;/groupId&gt;
  &lt;artifactId&gt;TimeDisplay&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;TimeDisplay Maven Webapp&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;3.8.1&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
        &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
        &lt;version&gt;2.24.1&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
        &lt;artifactId&gt;jersey-container-servlet&lt;/artifactId&gt;
        &lt;version&gt;2.24.1&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
    &lt;finalName&gt;TimeDisplay&lt;/finalName&gt;
  &lt;/build&gt;
&lt;/project&gt;
</code></pre>

<p>I'm also attaching a screenshot of my project's structure.</p>

<p><img src="https://i.stack.imgur.com/4sC52.jpg" alt="Project Structure"></p>

<p>It's worth noting that I was able to run the program through Intellij at first and this issue suddenly popped out without any changes done by me. Currently I'm packaging my code and manually deploying it in Tomcat, which is horrendous!</p>