java.lang.IllegalArgumentException: Invalid ejb jar MyApp-ejb.jar: it contains zero ejb. A valid ejb jar requires at least one session/entity/message driven bean.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by ulim, 1 year ago
Invalid ejb jar MyApp-ejb.jar: it contains zero ejb. A valid ejb jar requires at least one session/entity/message driven bean.
via Google Groups by Gary, 5 months ago
Invalid ejb jar [my_endtoend6.jar]: it contains zero ejb. Note: 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
via Google Groups by Michael Müller, 5 months ago
Invalid ejb jar [my_ejb3.1_embedded.jar]: it contains zero ejb. Note: 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
via oracle.com by Unknown author, 6 months ago
Invalid ejb jar [WebFOPWrapper-ejb.jar]: it contains zero ejb. Note: 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
via Coderanch by Duran Harris, 11 months ago
Invalid ejb jar [EJBActionBazaar.jar]: it contains zero ejb. Note: 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
via netbeans.org by Unknown author, 1 year ago
Invalid ejb jar [AloEJB.jar]: it contains zero ejb. Note: 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
java.lang.IllegalArgumentException: Invalid ejb jar MyApp-ejb.jar: it contains zero ejb. A valid ejb jar requires at least one session/entity/message driven bean.
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:81)
at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:69)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:669)
at com.sun.enterprise.deployment.Application.visit(Application.java:1734)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:342)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.