Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1793

EJb2.x bean in reference21_30 testcase of the testsuite does not strictly follow the spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.3
    • 1.1.2
    • testsuite
    • None

      After the changes in JBAS-4666, the EjbDeployer (meant for EJB2.x deployments) is now stricter in verifying the Ejb2.x bean against the spec.

      The org.jboss.ejb3.test.reference21_30.Test2 remote interface and its corresponding bean org.jboss.ejb3.test.reference21_30.Test2Bean in the "resource21_30" testcase of the testsuite, violates the EJb2.x spec which says:

      "All the exceptions de?ned in the throws clause of the matching method of the session bean class must be de?ned in the throws clause of the method of the remote interface."

      The business method, that violates this rule, in the remote interface is:

      void testAccess() throws RemoteException;

      The corresponding method in the bean class is declared as:

      public void testAccess() throws Exception
      {
      ...

      This effectively throws the deployment error:

      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.

      12:59:20,211 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/jaikiran/business/jboss/clean/jbossas/projects/ejb3/trunk/testsuite/target/test-lib/multideploy.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:275)
      at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:74)

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: