While trying to develop some Java EE 7 applications I faced the problem: Intellij IDEA 12.1.6 highlights my web.xml with red.
Actually, I took this web.xml directly from examples provided with Glassfish 4.0. This examples are used in Java EE 7 tutorials - so I'm pretty sure the structure is correct.
However, I think the cause of the problem is that my IDEA doesn't have access to the .xsd file describing servlet 3.1 deployment descriptor schema.
First of all, there is no web-app_3_1.xsd file in Jetbrains Java EE plugin (however 3.0/2.5/2.4 versions are provided).
I think the only way to make it work is to download web-app_3_1.xsd file from Oracle (or take it from Glassfish distribution) and add it manually in settings ->Schemas and DTDs.
However, that's pretty weird that last version of IDEA 12 could not recognise it out-of-the-box. I'm pretty sure that I have all the required plugin plugged in.
Probably, I'm doing something wrong?
Thanks in advance!