Http 404 error with Java Tomcat8.5 Maven and IntelliJ

1.7k Views Asked by At

I have following the setting on the website to config Javaweb with Maven run on IntelliJ idea, anything seem like be ok but when i hit run/debug button to run my project, the Output screen that Tomcat is started, but the web page started at http://localhost:8080/ shows an 404 error.

enter image description here

If I use Tomcat Plugins to run my project (tomcat7:run) it is work fine,

enter image description here

more details as below:

Edit Configuration:

enter image description here

Modules Setting:

enter image description here

Artifacts setting:

enter image description here

Facets setting:

enter image description here

web.xml

<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
  <display-name>Archetype Created Web Application</display-name>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>

Project Structure :

enter image description here

I'm a newbie at this stuff so any help will be appreciated. thanks so much! And i will upload more details if needed.

1

There are 1 best solutions below

0
Itslogout On
Host name="localhost"  appBase="webapps/manager"  unpackWARs="true" autoDeploy="true">

set path to your web app path