title: how to generate deployment descriptor using ejbGen for weblogic?
body: <p>I was reading the tutorial on this page:<br>
  <a href="http://edocs.bea.com/docs/cd/E13222_01/wls/docs81/medrec_tutorials/ejbgen.html#858279" rel="nofollow noreferrer">http://edocs.bea.com/docs/cd/E13222_01/wls/docs81/medrec_tutorials/ejbgen.html#858279</a></p>
  
  <p>And I have the following file BankAccountEJB.java</p>
  
  <p><code>
  import javax.ejb.CreateException;
  import javax.ejb.EntityBean;
  import javax.ejb.EntityContext;</p>
  
  <p>public abstract class BankAccountEJB implements EntityBean {</p>
  
  <pre><code>private EntityContext context;
  
  public void setEntityContext(EntityContext aContext) {
      context = aContext;
  }
  
  public void ejbActivate() {
  
  }
  
  public void ejbPassivate() {
  
  }
  
  public void ejbRemove() {
  
  }
  
  public void unsetEntityContext() {
      context = null;
  }
  
  public void ejbLoad() {
  
  }
  
  public void ejbStore() {
  
  }
  
  public abstract String getName();
  
  public abstract void setName(String name);
  
  public abstract Float getBalance();
  
  public abstract void setBalance(Float balance);
  
  public java.lang.Long ejbCreate(String name, Float balance)  throws CreateException {
      if (name == null) {
          throw new CreateException("The field \"key\" must not be null");
      }
  
      // TODO add additional validation code, throw CreateException if data is not valid
      setName(name);
  </code></pre>
  
  <p>setBalance(balance);</p>
  
  <pre><code>    return null;
  }
  
  public void ejbPostCreate(java.lang.Long key) {
      // TODO populate relationships here if appropriate
  }
  </code></pre>
  
  <p>}
  </code></p>
  
  <p>and I run java weblogic.tools.ejbgen.EJBGen -ddOnlyGen BankAccountEJB.java which produces the following error:</p>
  
  <p>Exception in thread "main" com.bea.wls.ejbgen.EJBGenException: ejbName is a required attribute
   at com.bea.wls.ejbgen.Bean.createBeanSpecificTags(Bean.java:202)
   at com.bea.wls.ejbgen.Bean.(Bean.java:127)
   at com.bea.wls.ejbgen.EntityBean.(EntityBean.java:76)
   at com.bea.wls.ejbgen.EJBFactory.createBean(EJBFactory.java:135)
   at com.bea.wls.ejbgen.EJBFactory.createBean(EJBFactory.java:99)
   at com.bea.wls.ejbgen.EJBGenSGen.initModule(EJBGenSGen.java:106)
   at com.bea.sgen.SGen.run(SGen.java:205)
   at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:212)
   at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:238)
   at weblogic.tools.ejbgen.EJBGen.main(EJBGen.java:21)</p>
  
  <p>Any input will be greatly appreciated~!</p>