When deploying an EAR (enterprise archive file) to an application server like JBOSS,
Fix your EAR package structure.
- Further information:
- All projects/files have been created with Eclipse
application.ear: Exported “Enterprise Application Project”
app-ejb.jar: Exported “Enterprise Java Beans Project”
app-web.war: Exported “Dynamic Web Project”
app-shared.jar: Exported “Java Project”, that contains classes that are used by more than one of the sub-projects. Can also be a third party jar-File with library classes.
- Exception occurs, since
app-ejb.jarmay be deployed just before
app-shared.jarhas been deployed. A workaround for that would be to first deploy
app-shared.jarseparately and remove it from your enterprise application compilation.