3 Replies Latest reply on Jan 14, 2013 5:01 AM by Stephen Coy

    Web.xml version when moving to Jboss7

    Dave seenam Newbie

      Currently i am working on migrating an application from Jboss 4.2.2 to jboss 7. in the older jboss version my web.xml looked like this


      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"


          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


      Notice the version is 2.4. when I deploy the application with this web.xml it seems to work well. But i have read in places that on jboss 7 the web.xml version should be 3.0 (since it is based on j2ee6)


      <web-app xmlns="http://java.sun.com/xml/ns/javaee"


            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"



      I am not able to definitively figure out is original web.xml can be retained. Any one know if i need to change this ?