Why JBoss is throwing EJB spec violation WARN while using EJB2 in EAP 5 ?

Solution Verified - Updated -

Issue

  • We changed our main interface to use generics in EJB2 application and then started getting the following error. Verified the specification but did not find any violation. The only change is the use of generics.
2014-11-27 10:04:51,065 WARN  [org.jboss.ejb.deployers.EjbDeployer.verifier] (HDScanner) EJB spec violation:
Bean   : TestBean
Method : public abstract ArrayList testMethod(int, int) throws TestException
Section: 7.10.7
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 local interface.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.