I've tried to test an EJB class whith JUnit but I gave this error :
java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/ejb/EJBTransactionRolledbackException
I've added follow dependencies:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-6</version>
<scope>test</scope>
</dependency>
what should I do to resolve this error?