Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6699

EJB verification error message should contain the EJB spec version number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-5.1.0.Beta1
    • EJB2
    • None

      When a EJB2 bean is being deployed, the deployer passes it through a verification stage. When the verification fails, the bean deployment is failed and a message is shown in the logs. Currently, the message does not include the EJB spec version. For example, when the bean remote interface and the bean impl class methods don't have a matching throws clause, the following error message is thrown:

      12:59:20,209 WARN [verifier] EJB spec violation:
      Bean : ejb_Test2
      Method : public abstract void testAccess() throws RemoteException
      Section: 7.10.5
      Warning: All the exceptions defined in the throws clause of the matching method of the session bean class must be defined in the throws clause of the method of the remote interface.

      Note the EJB section referred in this message. This section exists in EJB2.0 spec but not in EJB2.1 spec. So it's important to include the EJB spec version too.

              olubyans@redhat.com Alexey Loubyansky
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: