java.io.IOException: No EJBs found in the ejb-jar file 'sample-ejb.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml depl yment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.

Oracle Community | 666705 | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Kodo with Weblogic 10

    Oracle Community | 10 years ago | 666705
    java.io.IOException: No EJBs found in the ejb-jar file 'sample-ejb.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml depl yment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
  2. 0

    Maven Eclipse - User - Problem deploying WTP project in Weblogic 10

    nabble.com | 1 year ago
    java.io.IOException: No EJBs found in the ejb-jar file 'testewtp-core.jar'.  Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    EJB Deployment Descriptors not deploying to WLS

    Oracle Community | 8 years ago | 653947
    java.io.IOException: No EJBs found in the ejb-jar file {0}. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
  5. 0

    No EJBs found in the ejb-jar file

    Oracle Community | 6 years ago | 819486
    java.io.IOException: No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at l east one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.

    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.io.IOException

      No EJBs found in the ejb-jar file 'sample-ejb.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml depl yment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.

      at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile()
    2. weblogic.ejb.container
      EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile
      1. weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:191)
      1 frame
    3. weblogic.ejb.spi
      EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile
      1. weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
      1 frame
    4. weblogic.ejb.container
      EJBModule.prepare
      1. weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:965)
      2. weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:335)
      2 frames
    5. weblogic.application.internal
      DeploymentCallbackFlow$1.next
      1. weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
      2. weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
      2 frames
    6. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      1 frame
    7. weblogic.application.internal
      BaseDeployment$1.next
      1. weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
      2. weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
      3. weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
      3 frames
    8. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      1 frame
    9. weblogic.application.internal
      DeploymentStateChecker.prepare
      1. weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
      2. weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
      2 frames
    10. weblogic.deploy.internal
      AppDeployment.prepare
      1. weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
      2. weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:137)
      2 frames
    11. weblogic.management.deploy
      DeploymentServerService.start
      1. weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
      2. weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
      3. weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
      4. weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
      5. weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
      6. weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
      7. weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
      8. weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
      8 frames
    12. weblogic.t3.srvr
      SubsystemRequest.run
      1. weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      1 frame
    13. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
      2 frames