Hi
Ear is the top level archive for the enterprise application. If you have time you may consult the chapter 20 - named "EJB-jar File" from the specifications (JSR220).
The build methodology for this archive may depending on the underlying tools (
IDE,
maven, gradle, ant, etc) but the archive structure remains the same. In your case you need something like :
my.ear:
project1-ejb.jarproject1-ejb.jar
After your log file I presume that you use netbeans so go in File->New project->Enterprise application. After you are ready with this select the fresh create enterprise application do right click choose "Add new module".
Regards,
Mihai.
SCJP, SCJD, SCWCD, OCPJBCD