arnor,
I’m guessing that the reason you are getting errors is because of your ordering. The order that tags appear in the web.xml file is very important, for example, you cannot have a taglib element before a welcome-file-list element.
The autocomplete is order-sensative, so it should take care of this for you if you used it to perform the completions. Also, when you read the error message, it should say something like:
“File contents must match (web-app (servlets)(…..))”
you can eyeball the ordering of the elemnts by reading that error messsage. For example, I have my session-config ontop of my welcome-file-list, and they are both at the bottom of the file directly above my taglib elements, and this does not create a validation error.
Also make sure that the XML file is being opened with our XML editor, its named “XML Editor” (this will be fixed in 2.7 GA).