Probably your main.jar was not packed into ear. Please check. Please show your sources and pom.xml that builds ear.
What does your application.xml look like? Are you declaring main.jar as an ejb module? Are you trying to force a specific order of deployment?
I'm letting maven-ear-plugin generate the application.xml; yes, I told it to initializeInOrder. It has my war first, and then the ejbs. However, main.jar is not listed as it's not actually an ejb, however, it is included in the ear with other dependencies.
Can you provide the following things:
- More of the error message. There may be something above or below what you provided that would help to narrow things down
- The structure of your ear file -- where jar files are contained (in the root directly, lib directory, etc.)
- The contents of application.xml file
Without seeing these things, it's largely a guessing game.