from classpath to solve this error. But this might be required during compilation. Hence, I modified the maven scope to provided, and that way, the JAR was not copied to the generated app WAR , thereby solving my problem. <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> Sources http://www.andrejkoelewijn.com/wp/2010/03/04/absent-code-attribute-in-method-that-is-not-native-or-abstract/ http://weblogs.java.net/blog/ludo/archive/2007/01/java_ee_5_apis.html Share this: Email