'Http 404 error with Java Tomcat8.5 Maven and IntelliJ
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.
If I use Tomcat Plugins to run my project (tomcat7:run) it is work fine,
more details as below:
Edit Configuration:
Modules Setting:
Artifacts setting:
Facets setting:
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 :
I'm a newbie at this stuff so any help will be appreciated. thanks so much! And i will upload more details if needed.
Solution 1:[1]
Host name="localhost" appBase="webapps/manager" unpackWARs="true" autoDeploy="true">
set path to your web app path
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Itslogout |







