Servlet 3.1 deployment descriptior schema missing in IDEA 12.1


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!

1 comment
Comment actions Permalink

Possibly I've found the answer:

Looks like there is no support for Java EE 7 in IDEA 12.
Looks like I need to use IDEA 13 EAP to obtain this.


Please sign in to leave a comment.