> You need to read section 8.2.3 of the servlet specificaiton > > <quote> > If the order in which the listeners, servlets, filters are invoked is > important to an application then a deployment descriptor must be used. > Also, if necessary, the ordering element defined above can be used. As > described above, when using annotations to define the listeners, > servlets and filters, the order in which they are invoked is unspecified. > <quote> > > Entries in the global web.xml files will be added after those from the > application web.xml > > yes thats what i was testing also But where are then annotations coming in? I can't find that. And i mean together with a web.xml in conf and a web.xml in web-inf where there are also definitions of filters and mappings..
It seems to me that it is: WEB-INF/web.xml (these do have order between them) annotations (unordered) conf/web.xml (these do have order between them) or is that just an tomcat implementation? that other containers don't really have to follow?