So you have:
Christian Tre wrote:
The ear is packed as following
+ META-INF
| | ejb-jar.xml
| | MANIFEST.MF
.ear/META-INF/ejb-jar.xml? That's not how .ear are packaged. The ejb-jar.xml should reside in the .jar/META-INF folder of the EJB jar (I guess your ejb3.jar). And then the .ear may (optionally) contain a META-INF/application.xml. So the .ear would look something like:
.ear
|
|--- META-INF
| |
| |--- application.xml
|
|--- ejb3.jar
| |
| |--- META-INF
| | |
| | |--- ejb-jar.xml
| | |--- persistence.xml
| |
| |--- [the classes go here]