It's actually failing to register the EJB container. The EJB container name is composed of the ear name, the jar name and the bean name. The bean name by default is the unqualified name of the EJB implementation class (in this case, ClassName). You can workaround fix this by overriding the default name of either one or both of those EJBs like this:
@Stateless (name="MyBean1")
...
public class package1.ClassName implements package1.ClassNameLocal, package1.ClassNameRemote
Notice the use of the "name" attribute on @Stateless