Inspectopedia 2025.3 Help

Web.xml warnings

Reports duplicated welcome-files listed in the descriptor for deploying a Web Module to a server.

Example:

<?xml version="1.0" encoding="UTF-8"?> <!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> <welcome-file-list> <welcome-file> Welcome1.jsp </welcome-file> <welcome-file> /Welcome1.jsp // Error: duplicated welcome-file </welcome-file> <welcome-file> Welcome3.jsp </welcome-file> </welcome-file-list> </web-app>

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

WebWarnings
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Java EE

Inspection ID: WebWarnings

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection WebWarnings

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.3, Qodana for JVM 2025.3,

Last modified: 03 December 2025