I want to use Mojarra 2.1 with Tomcat 7, so I added following dependencies in my pom file:
com.sun.faces
I have the same problem, and it seams somehow to
javax
javaee-web-api
or
javax
javaee-api
after setting them to scope provides (or delete them at all when you start an server in maven test) it starts working for me.
@See this Blog: java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file … - It discuss the problem for javax.persistence.GenerationType but I think you and I hit the same problem.