In Eclipse I created an EAR project linked to an ejb and a model. I ran the EAR and I got the following error:
cannot Deploy earkmz deplo
cannot Deploy earkmz
deplo
Do check
Project -> Properties -> Java Compiler
and set the compliance level over there as 1.6.