ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/MessagingException
The javax:javaee-api is intended for compiling, not running, including unit tests. If you need classes suitable for running against, run against a Java EE application server. Also, the correct name is Java EE, not JEE.