title: WAS 8.5 The enterprise bean in the ejb.jar module has no EJB type defined. (ejb 2.x -> 3.x)
body: <p>Im migrating our deployment descriptors from EJB 2.x to EJB version 3.x. Currently im getting the following error:</p>
  
  <pre><code>[exec]   [wsadmin] com.ibm.ejs.container.EJBConfigurationException: 
  com.ibm.ejs.container.EJBConfigurationException: 
  The MyBean enterprise bean in the ejb.jar module has no EJB type defined.
  </code></pre>
  
  <p>Now according to <a href="http://docs.oracle.com/cd/A97335_02/apps.102/a83725/xml1.htm" rel="nofollow">http://docs.oracle.com/cd/A97335_02/apps.102/a83725/xml1.htm</a> this is my ejb-jar.xml element for the enterprise bean definition:</p>
  
  <pre><code>&lt;enterprise-beans&gt;
      &lt;session id="MyBean"&gt;
          &lt;ejb-name&gt;MyBean&lt;/ejb-name&gt;
          &lt;ejb-class&gt;foo.MyBean&lt;/ejb-class&gt;
          &lt;env-entry&gt;
              &lt;description&gt;
              &lt;/description&gt;
              &lt;env-entry-name&gt;bootloader.config&lt;/env-entry-name&gt;
              &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
              &lt;env-entry-value&gt;my_config&lt;/env-entry-value&gt;
          &lt;/env-entry&gt;
      &lt;/session&gt;
  &lt;/enterprise-beans&gt;
  </code></pre>
  
  <p>The above element "session" should define the beans type which is session since the according Class it implements the javax.ejb.SessionBean interface.</p>
  
  <p>Am i missing anything here already? Or do i have to adjust the bean class itself as well when migrating those deployment descriptors?</p>
  
  <p>Best Regards and thanks in advance</p>