2 Replies Latest reply on Sep 9, 2002 3:42 AM by Jens Schauder

    Can't find ejb[Post]Create in messageBoard.entity.UserCMP

    Jens Schauder Newbie

      Hi,
      I just created my first homemade cmp ejb! works great!
      so I went on, copied everything, made some slight changes to it ... deployed and failed :-(

      Jboss producess the error at the very end of the posting, and I couldn't find anything mentioning it in the internet. It is true that UserCMP doesn't contain a ejbCreate except through extending UserBean. The same is true for my first bean, which still works fine.

      Please help, I'm stuck.

      regards
      Jens Schauder

      ------ Plattform used -------
      Win2000
      jdk1.3.1
      jboss 3.0.2




      ---- code snippet from (UserBean) ---------
      /**
      * Create a User based on the supplied id and email
      *
      * @param id used to identify the user.
      * @param email of the user.
      * @throws EJBException No idea when this is supposed to happen
      * @throws CreateException when we get problems e.g. id already exists
      *
      * @ejb:create-method view-type="remote"
      **/
      public UserPK ejbCreate(String id, String email)
      throws
      EJBException,
      CreateException
      {
      setId(id);
      setEmail(email);
      return null;
      }


      ----- jboss log with the error --------------


      15:59:57,773 INFO [EjbModule] Deploying messageBoard/User
      15:59:57,843 WARN [ServiceController] Problem creating service jboss.j2ee:servi
      ce=EJB,jndiName=ejb/messageBoard/User
      java.lang.NoSuchMethodException: Can't find ejb[Post]Create in messageBoard.enti
      ty.UserCMP