maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snekse <>
Subject MEAR: Exception while deploying the app...Invalid ejb jar
Date Wed, 24 Oct 2012 14:45:30 GMT
I'm hoping someone can shed some light on this.  When I package my ear
using maven-ear-plugin 2.7, I'm able to deploy without an issue.  If I
update my pom to use maven-ear-plugin v2.8, I cannot deploy the ear and I
receive the error below in my Glassfish server logs:

remote failure: Error occurred during deployment: Exception while deploying
the app [mycoservicesear] : Invalid ejb jar [mycoservicesejb.jar]: it
contains zero ejb.
1. A valid ejb jar requires at least one session, entity (1.x/2.x style),
or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as
library jar.
3. If the jar file contains valid EJBs which are annotated with EJB
component level annotations (@Stateless, @Stateful, @MessageDriven,
@Singleton), please check server.log to see whether the annotations were
processed properly.. Please see server.log for more details.
Command deploy failed.

This error is preceded by warnings such as this.

in annotation processing: java.lang.NoClassDefFoundError:
com/myco/services/business/PersonService|#] (NOTE: Defined in

Our mycoservices project looks like this:


When I explode the resulting ears, the biggest difference I notice is in
the MANIFEST.MF of the mycoservicesejb.jar.  The 2.7 version has
mycoservicesclient.jar and all of the other Maven dependencies listed for
Class-Path.  The 2.8 version has nothing listed.  From what I've read in
the release notes for
nothing seems to point towards this kind of change.

Any clarification of what's going on, and more importantly, what the right
way to configure things to work on 2.8 (preferably with an explanation of
why) would be greatly appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message