You need to include the Java EE dependencies in your POM, with a provided
scope (aka, the files will eventually be provided by the application server, but in the meantime I need them for compilation).
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>