I come across an error that I am not able to solve, the fact is that after making some example codes and testing them with the Tomcat 10 server that I have installed, they work fine but in the dynamic web project, specifically the web.xml file gives me error, I attach a photo and code in case someone knows how to solve it, although I have tried to change j2ee for javaee and the label continues to give me an error.
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>otro</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
I have tried to put 2.4 and the error disappears on line 2 version="2.5" but the file continues with the error and also the error continues, thank you very much in advance.
All the best