-
Bug
-
Resolution: Obsolete
-
Major
-
JBossAS-5.1.0.Beta1
-
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.