Inspectopedia 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>

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Jakarta EE: Web/Servlets, 233.SNAPSHOT

Last modified: 13 July 2023