IDEA-Failed to start web project, Error during artifact deployment, Web Application:exploded without from modules

Based on non-maven project, if maven project: pom.xml build node plus
src/main/resources / .properties /.xml **/.tld false src/main/java / .properties /.xml **/.tld false

1. First check if there are any packages under tomcat, delete the original ones first

Insert picture description here

2. Click + to add web (because no web is added, it is not regarded as a web project and naturally there is no from modules)

(If this step is just missing, the result is likely to be successful startup, but the project reports 404)

Insert picture description here

3. At this time, you can see from modules after repackaging

(If you choose Empty instead of From Modules, the likely result is Error during artifact deployment. See server log for details)

Insert picture description here

Other supplement 1: The JDK version in the Project Modules must be consistent, for example, the project above is 1.6 and the choice must be 6, (for example, if you choose 8 incorrectly, you will get an error: invalid release version: 8)
Insert picture description here

Other supplement 2: If the jar package is not added to the project, the general problems will prompt to click fix and repackage (repeat all the above steps, you can’t be lazy!) or add the jar package in Libraries by yourself
Insert picture description here

Structure description:

project is equivalent to eclipse's workplace

Moudules is equivalent to eclipse's project

Libraries: the place where the idea really reads the jar package.

Facets: the place where the web.xml path is configured (including spring is also configured here)

Artifacts: the place where the jar and war packages are played


Continuously updating...

Article reference learning address: https://blog.csdn.net/qq_36268103/article/details/106140854

Guess you like

Origin blog.csdn.net/weixin_44325444/article/details/106323517