Absent Code attribute

By executing the Unit Tests with TestNG for this Maven2 Archetype here:


I got this Exception:

Absent Code attribute in method that is not native or abstract in class file javax/faces/lifecycle/Lifecycle

This project is annotation driven. The JSF Managed Beans are annotated with Spring Annotations:


in the applicationContext.xml I have this lines here to read the annotations:

<context:component-scan base-package="com.versioneye" />

I created a second applicationContext.xml for the test environment and modified the annotation-config. In the test environment I am scanning now just the peristence package. Because there are anyway no Unit Tests for the JSF Managed Beans.

<context:component-scan base-package="com.versioneye.persistence"/>

Since I am not scanning the Managed Beans in the test environment I didn’t get the Exception above.