1 Reply Latest reply on Jun 19, 2003 12:48 AM by Adrian Brock

    Stateful session bean issue between JBoss server versions

    Indu Newbie

      WARNINGS/ERRORS that we get during the deployment for testing.
      Some of the methods within our EJBSessionComponents give us the following warning:
      [exec] 14:54:52,014 WARN [verifier] EJB spec violation:
      [exec] Bean : ProductCSOEntitySvc
      [exec] Method : public abstract ProductCSODataObjectCollection getPage(bool
      ean, int) throws NamingException, FinderException
      [exec] Section: 7.10.7
      [exec] Warning: All the exceptions defined in the throws clause of the matc
      hing method of the session bean class must be defined in the throws clause of th
      e method of the local interface.

      it works fine using JBoss 3.0.4, but we deploy for testing using JBoss 3.2.0. Could that be the problem?
      I believe it is giving warning for only stateful session bean.

      Please let me know if anyone could help regarding this issue.

      Thanks,
      Indu

        • 1. Re: Stateful session bean issue between JBoss server version
          Adrian Brock Master

          I bet if you look at 3.0.4 you will see that warnin
          as well.
          The only difference is that 3.2.x stops the
          deployment on any warnings.
          3.0.x displayed the warning and continued.

          You can change 3.2.x back to the 3.0.x behaviour
          in conf/jboss-service.xml, look for the strict verification
          attribute on the EJBDeployer and set it to false.

          Better would be fixing your bean class to throw the
          same exceptions as the local interface.

          Regards,
          Adrian