java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet

前端 未结 5 1745
说谎
说谎 2020-11-27 19:26

I want to use Mojarra 2.1 with Tomcat 7, so I added following dependencies in my pom file:


       com.sun.faces         


        
5条回答
  •  眼角桃花
    2020-11-27 20:25

    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.

提交回复
热议问题