Hi, 

i have a small problem with xdoclet 1.2b2 creating a CMP bean.
For some reason the created ejbRemove method in the CMP
bean always looks like :

   public void ejbRemove() throws javax.ejb.RemoveException
   {
      super.ejbRemove();

   }

Compiling the class fails with the error 

Exception RemoveException is not compatible with throws clause in
UserEJB.ejbRemove()

when i remove the "throws javax....." compiling the file and
my app works fine. 

Is this a bug in xdoclet 1.2b2, or do i miss something ?? 

I am using Jboss 3.0.4, xdoclet 1.2b2, and ant 1.5.1

Any help is really appreciated and thanks in advance,

 Andreas 


Btw, the bean looks like :


import java.rmi.RemoteException;

import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.CreateException;

/**
 * 
 * @author aw
 * 
 * @ejb.bean
 *   type="CMP"
 *   name="User"
 *   description="User Entity Bean representing a user in the extranet"
 *   display-name="Extranet User Bean"
 *   cmp-version="2.x"
 *   jndi-name="ejb/entity/User"
 *   primkey-field="id"
 *   reentrant="false"
 *   schema="sol"
 *   ref-name="User" 
 * 
 * @ejb:finder 
 *   signature="java.util.Collection findAll()"
 * 
 * @ejb.value-object
 *   name="User"
 *   match="*"
 *
 * @ejb.persistence
 *    table-name="users"
 * 
 * @jboss.persistence
 *    datasource="DefaultDS"
 *    datasource="java:/DefaultDS" 
 *    datasource-mapping="Oracle8" 
 *  
 */
public abstract class UserEJB implements EntityBean
{
  /**
   * @ejb.persistence
   *   column-name="benutzerid"
   * 
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract String getName ();
  
  /**
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract void setName (String name);
  
  /**
   * @ejb.persistence
   *   column-name="issuernr"
   * 
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract String getPassword ();
  
  /**
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract void setPassword (String password);

  /**
   * @ejb.persistence
   *   column-name="kundennr"
   * 
   * @ejb.interface-method
   *   view-type="remote" 
   */
  public abstract String getCustomerNumber ();
  
  /**
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract void setCustomerNumber (String customerNumber);

  /**
   * @ejb.persistence
   * 
   * @ejb.interface-method
   *   view-type="remote" 
   */
  public abstract Long getId ();
  
  /**
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract void setId (Long id);

  /**
   * @ejb.persistence
   *   column-name="rollenfm"
   * 
   * @ejb.interface-method
   *   view-type="remote" 
   */
  public abstract Long getRights ();
  
  /**
   * @ejb.interface-method
   *   view-type="remote" 
   */  
  public abstract void setRights (Long rights);
  
  /**
   * @ejb.interface-method
   */
  public abstract UserValue getUserValue ();

  /**
   * @ejb.interface-method
   */
  public abstract void setUserValue (UserValue value);  
  
  public void ejbActivate ()
  {
    System.err.println ("UserEJB::ejbActivate");      
  }

  public void ejbPassivate ()
  {
    System.err.println ("UserEJB::ejbPassivate");
  }

  public void ejbRemove ()
  {
    System.err.println ("UserEJB::ejbRemove");
  }

  public void ejbLoad ()
  {    
    System.err.println ("UserEJB::ejbLoad");
  }

  public void ejbStore ()
  {
  }

  /**
   * The ejb create Method.
   * 
   * @ejb.create-method
   *
   */  
  public Long ejbCreate (Long id, String name, String password, String
customerNumber, Long rights)
    throws CreateException
  {
    System.err.println ("UserEJB::ejbCreate");
    
    setId (id);
    setName (name);
    setPassword (password);
    setCustomerNumber (customerNumber);
    setRights (rights);
    return id;
  }
  
  public void ejbPostCreate (Long id, String name, String password,
String email, Long rollenfm)
    throws CreateException
  {
    System.err.println ("UserEJB::ejbPostCreate");
  }

}



************************************************************************
***********************************
                         Soloplan GmbH, Software f�r Logistik und
Planung,
                              Cambodunumweg 11, D-87437 Kempten
                Andreas W�st ; Tel.: +49 (0)831-57407-52 ; Fax.: +49
(0)831-57407-20
                                         [EMAIL PROTECTED]


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to