Web.xml will always add a xmlns:web,web-app_4_0.xsd to web-app_2_5.xsd automatically.

The

webapp tag becomes

< web-app xmlns:xsi= " http://www.w3.org/2001/XMLSch...; xmlns= " http://xmlns.jcp.org/xml/ns/j...; Xmlns:web= " http://xmlns.jcp.org/xml/ns/j...; xmlns:web= " http://xmlns.jcp.org/xml/ns/j...; Xsi:schemaLocation= " http://java.sun.com/xml/ns/ja... http://java.sun.com/xml/ns/javaee/web-app_4_0.xsd http://xmlns.jcp.org/xml/ns/j... http : / / java.sun.com/xml/ns/javaee/web-app_2_5.xsd "id=" WebApp_ID "version=" 4.0 ">

the point is that I didn"t touch it. I always said to myself and added such a

.

xmlns:web= "http://xmlns.jcp.org/xml/ns/javaee"

The previous version of

is

< web-app xmlns:xsi= " http://www.w3.org/2001/XMLSch...; xmlns= " http://java.sun.com/xml/ns/ja...; Xsi:schemaLocation= " http://java.sun.com/xml/ns/ja... http://java.sun.com/xml/ns/javaee/web-app_4_0.xsd" id= "WebApp_ID" version= "4.0" >

Menu