2 Replies Latest reply on Aug 19, 2006 1:17 PM by tazly

    org.jboss.ejb3.ProxyFactoryHelper log improvement

    ajaleo

      Hi!

      I've been getting the following error message in my deploy (EJB 3.0 RC8)

      "bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interface" (Line 105)

      This message is thrown by org.jboss.ejb3.ProxyFactoryHelper and isn't very informative. It could be interesting to print the bean that produces the error. Some lines above there are other 2 error messages that have the same problem too:

      if (list.size() == 0)
       throw new RuntimeException("Use of empty @Local on bean class and there are no valid business interfaces");
       if (list.size() > 1)
       throw new RuntimeException("Use of empty @Local on bean class and there are more than one default interface");
      



      Thanks a lot for your job

        • 1. bean class has no local, webservice, or remote interfaces de
          kamra

          I too get the same problem when I try to implement EJB Style Webservice and Servlet Style Webservice in the same project (same ear).


          2006-08-11 12:16:28,093 DEBUG [org.jboss.ejb3.Ejb3Module] Initialization failed jboss.j2ee:service=EJB3,module=RefDataServletModule-ejb.jar
          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:105)
          at org.jboss.ejb3.ProxyDeployer.initializeLocalBindingMetadata(ProxyDeployer.java:117)
          at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:71)
          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:573)



          I m using jboss 4.04 GA
          EJB contianer - jboss-EJB-3.0_RC8-FD
          and JBoss WS - jbossws-1.0.1.GA

          Does anyone know Y is this error message comming.

          Another intresting point is, When i keep only one type of Webservice, that is either EJB Style Web service or Servlet Style web service at a time in the EAR file, every thing works fine. It is only when i keep both the web services in the same EAR file, I get this problem.



          • 2. Re: org.jboss.ejb3.ProxyFactoryHelper log improvement
            tazly

             

            "Ajaleo" wrote:
            Hi!
            It could be interesting to print the bean that produces the error.


            I agree. Its a pain in the butt that I have to go through all the beans to find the "offender". Please log bean name.