1 Reply Latest reply on May 16, 2003 7:55 AM by Adrian Brock

    EJB spec violation

    Albin Carpentier Newbie

      Hello

      I have a problem when I deploy a Message Driven Bean :
      WARN [verifier] EJB spec violation:
      Bean : IlrContextPoolUpdaterEJB
      Method : public void ejbRemove() throws EJBException
      Section: 15.7.5
      Warning: The ejbRemove() method must define no application exceptions.
      ERROR [MainDeployer] could not create deployment

      But the J2EE specification says that MessageDrivenBean.ejbRemove() throws EJBException.
      JBoss don't respect the J2EE specification ??

        • 1. Re: EJB spec violation
          Adrian Brock Master

          EJBException is not an application exception.

          It is a RuntimeException, you do not normally
          declare it as thrown in the same way as
          you do not declare NullPointerException.

          You can post it as a bug that it reports it as
          an error when it is declared.

          www.sf.net/projects/jboss

          Regards,
          Adrian