]
jaikiran pai resolved EJBTHREE-1793.
------------------------------------
Fix Version/s: 1.1.3
Resolution: Done
Fixed. r86376.
EJb2.x bean in reference21_30 testcase of the testsuite does not
strictly follow the spec
-----------------------------------------------------------------------------------------
Key: EJBTHREE-1793
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1793
Project: EJB 3.0
Issue Type: Bug
Components: testsuite
Affects Versions: 1.1.2
Environment: JBAS 5_x branch, JBAS trunk
Reporter: jaikiran pai
Assignee: jaikiran pai
Fix For: 1.1.3
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: