web.xml

I just downloaded the latest Eclipse plugin and created a vaadin 7.0 project. On one of the screens, it has a checkbox saying something like “Generate web.xml descriptor deployment”

For Servlet 3.0, then it’s optional. Are there any settings that you can’t annotate in the classes that you have to do it in web.xml?

Is it a good practice to always create a web.xml even though you might not need it in your web application?

Thanks

Off the top of my head I’d say yes, there are, although I don’t have a list of differences or even specific examples to give you right now. Personally I mostly deal with small test projects, but the configurations I most often need are covered with the annotations and it’s been a good while since I’ve needed a web.xml for anything. I habitually generate my projects without it unless I have go with Servlet 2.4 for some reason.