java.lang.IllegalArgumentException: Invalid ejb jar [ngp-constituent-ejb-1.0-SNAPSHOT.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 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.

Oracle Community | ljnelson | 6 years ago
  1. 0

    "Contains no EJBs"...but it does, and no server.log errors

    Oracle Community | 6 years ago | ljnelson
    java.lang.IllegalArgumentException: Invalid ejb jar [ngp-constituent-ejb-1.0-SNAPSHOT.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 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.
  2. 0

    Failure When Deploying EJB Project That Uses Library Onto Glassfish

    Oracle Community | 5 years ago | 869183
    java.lang.IllegalArgumentException: Invalid ejb jar [BeanFoo.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 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.
  3. 0

    eclipse and glassfish ejb jar contains zero ejb

    Oracle Community | 5 years ago | 767951
    java.lang.IllegalArgumentException: Invalid ejb jar [hub-sso.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 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    not able to deploy ear with jar and war file on glassfish v3.1.2

    Oracle Community | 5 years ago | jainmanglesh
    java.lang.IllegalArgumentException: Invalid ejb jar [quantum.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 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 annotati ons were processed properly.
  6. 0

    Slf4j: Classpath Contains Multiple Slf4j Bindings Error While Starting Jboss

    wpthm.com | 1 year ago
    java.lang.IllegalArgumentException: Invalid ejb jar [NetBeansJunitTutorial.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 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.+

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid ejb jar [ngp-constituent-ejb-1.0-SNAPSHOT.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 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.

      at com.sun.enterprise.deployment.util.EjbBundleValidator.accept()
    2. Deployment Object Library
      ApplicationFactory.openWith
      1. com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
      2. com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
      3. com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:727)
      4. com.sun.enterprise.deployment.Application.visit(Application.java:1768)
      5. com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:794)
      6. com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:273)
      7. com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:239)
      7 frames
    3. Deployment Related JavaEE Core Classes
      DolProvider.load
      1. org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
      2. org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
      2 frames
    4. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:766)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:708)
      3. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:347)
      4. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:243)
      4 frames
    5. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:351)
      1 frame
    6. Kernel Classes
      AdminAdapter.service
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:354)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:369)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1079)
      4. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
      5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1256)
      6. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1245)
      7. com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:396)
      8. com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:216)
      8 frames
    7. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
      1 frame
    8. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
      2 frames
    9. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:817)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:718)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1007)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame