[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-869) better exception message need when some SLSB doesn't implement a remote, web service, or local interface

Joseph Marques (JIRA) jira-events at jboss.com
Thu Feb 8 00:01:30 EST 2007


better exception message need when some SLSB doesn't implement a remote, web service, or local interface
--------------------------------------------------------------------------------------------------------

                 Key: EJBTHREE-869
                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-869
             Project: EJB 3.0
          Issue Type: Bug
    Affects Versions: EJB 3.0 RC9 - Patch 1
         Environment: JBoss 4.0.5, EJB 3.0 RC9 Patch 1
            Reporter: Joseph Marques


Steps to reproduce:

1) Annotate some class with @Stateless
2) Don't create and / or forget to implement that SLSB with remote / web service / local
3) Start up the server, you will receive deploy errors such as:

3:40:08,206 WARN  [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=on-enterprise-server-ejb.ejb3 java.lang.RuntimeException: bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interface
        at org.jboss.ejb3.ProxyFactoryHelper.getLocalInterfaces(ProxyFactoryHelper.java:107)
        at org.jboss.ejb3.ProxyDeployer.initializeLocalBindingMetadata(ProxyDeployer.java:115)
        at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:110)
        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:415)
        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:397)
        at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
        at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
        at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)

It would be infinitely more helpful if this error message, instead of printing a long internal stack trace, would tell me which class(es) had the error in it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list