title: JBAS014544: No EJB found with interface
body: <p>I am new to Java EE and am using JBoss 7 to create my first project. I have an EAR project, an EJB project, WEB project and a JPA project in my workspace. The ejb created in the EJB project wants to use an ejb created in the JPA project. It all compiles fine, however when I deploy the EAR project I get the following exception and the deployement fails. Here is the main exception cause.</p>
  
  <blockquote>
    <p>JBAS014544: No EJB found with interface of type
    'com.kohlisoft.stockmanagement.jpa.service.StockManagementBeanJpa' for
    binding
    com.kohlisoft.stockmanagement.ejb.main.StockManagementService/sms</p>
  </blockquote>
  
  <p>I suspect that the EJB project is not able to look at the class in jpa jar.</p>
  
  <p>I have gone though various links to sort it out but no help. Based on few suggestions I have modified it but still no joy.
  1. I checked the structure and the JPA project is going under the lib folder in .ear.
  2. Updated the EJB project's manifest file to add the dependeny to the jpa jar.</p>
  
  <p>I would really appreciate any help here.</p>
  
  <p>The EJB in the JPA project.</p>
  
  <pre><code>@Stateless
  @LocalBean
  public class StockManagementBeanJpaBean implements StockManagementBeanJpa {
  
      @PersistenceContext(unitName="StockManagement")
      private EntityManager em;
  </code></pre>
  
  <p>The EJB in the EJB project which uses it:</p>
  
  <pre><code>@Stateless
  @LocalBean
  public class StockManagementService implements StockManagementServiceLocal {
  
      @EJB
      StockManagementBeanJpa sms;
  
  ...
  </code></pre>
  
  <p>EJB Project MANIFEST file.</p>
  
  <pre><code>Manifest-Version: 1.0
  Class-Path: StockManagement-ejbClient.jar
  Dependencies: lib/StockManagement-jpa.jar
  </code></pre>
  
  <p>Here is the structure of the .jars and .war in .ear.</p>
  
  <pre><code>.ear
   |____ ejb.jar
   |
   |____ ejbClient.jar
   |
   |____ web.war
   |
   |____ /lib
           |
           | ____ jpa.jar
           |
           | ____ all other jars related to derby client, hibernate, jta etc.
  </code></pre>
  
  <p>Let me know if any other files are required. </p>