Sunday, September 1, 2013

web-app_3_0.xsd schema is reference from javaee



   ...
   ...
I was clueless when I first saw the above code causing an error in Deployment Descriptor. I was trying to retrieve web-app_3_0.xsd schema but I couldn’t spot the typo error in the above code. If you were me, can you spot the error? If you take a closer look, the error happened on j2ee. It was cause by my copy and paste habit.

http://java.sun.com/xml/ns/j2ee is no longer a valid URL to retrieve JAVA EE 5 (and above) schema, it is only valid for J2EE 1.4. For JAVA EE 5 (and above) schema, the URL has been update to http://java.sun.com/xml/ns/javaee.

No comments: