5 Replies Latest reply on Dec 5, 2003 9:39 AM by Raja

    XDoclet doesn't generate ejb files

    petrus Newbie

      Hi
      I use JBOSS3.2.1, XDoclet 1.1.2, eclipse 2.1.1.
      I want to buid a very simple session EJB, but XDoclet will not generate the files (only the xml files, but with no ejb declared inside). the variables ant path are good, I tried many changes but it won't work.
      Here are part of the sources :



      ModelSessionBean.java (in directory ${src.ejb.home})
      -------------------------------------------------------

      package ejb;

      import java.rmi.RemoteException;

      import javax.ejb.SessionBean;
      import javax.ejb.SessionContext;

      /**
      * @ejb.bean name="ModelSession"
      * display-name="session bean facade"
      * type="stateless"
      * transaction-type="Container"
      * jndi-name="ejb/ModelSession"
      * view-type="remote"
      *
      * @ejb.home
      * @ejb.interface
      */
      public class ModelSessionBean implements SessionBean {

      /**
      * @ejb.interface-method view-type="remote"
      * @ejb.transaction type="NotSupported"
      */

      public boolean userExists(String UserName)
      throws RemoteException {
      System.out.println("USEREXIST");
      return true;
      }



      private SessionContext _context;

      public void ejbActivate() {
      }

      public void ejbPassivate() {
      }

      public void ejbRemove() {
      }

      public void setSessionContext(SessionContext ctx) {
      _context = ctx;
      }
      }



      part of build.xml
      --------------------------------------------------------


























      ....



























      Output of ant build
      -----------------------------------

      generate-xdoclet:
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
      [ejbdoclet] (XDocletMain.start 47 ) Running
      [ejbdoclet] Generating jboss.xml.
      BUILD SUCCESSFUL
      Total time: 6 seconds



      -------------------------
      please help !!! I can give you more details if you ask.


      Px