dev@mojarra.java.net

Problem with JSF 2.0 API JAR file

From: Manfred Riem <mriem_at_manorrock.org>
Date: Mon, 26 Oct 2009 22:11:54 -0600

Hi there,

 

I am now updating to the latest and greatest version of JSF, but I have hit

a snag that I think is a rather interesting one. As part of my application I
have

JUnit tests that use EasyMock to deal with some JSF artifacts.

 

In this particular case I am using EasyMock with classextensions to create

a mock for the FacesContext class. With the previous JSF versions I did not

have a problem, but with the API JAR from the maven 2 repository

(http://download.java.net/maven/2/javax/faces/jsf-api/2.0/) I am

hitting a road block.

 

My JUnit tests are now failing with the following message.

 

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

 

The only thing I have changed in my build is JSF so I am 100% certain that

is the only thing. Anyone have any advice on how to deal with this?

 

Manfred