2 Replies Latest reply on Sep 14, 2004 11:01 AM by hubaer

    Error using Local and Remote Interface

      Hi all,

      I have a problem using local interfaces and remote interfaces for the same bean.

      I want to use a session bean as session fassade but also to connect in between different ejbs.

      Because I throw the RemoteException in the Bean I add in both (local and remote interface) the remoteException

      But when I now deploy the ejb I got following error:

      WARN [verifier] EJB spec violation:
      Bean : ActivityController
      Method : public abstract Vector getList(int) throws RemoteException
      Section: 7.10.7
      Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause.

      and the deployment process halt with an error.

      If I delete "throws RemoteException" in the local interface I got following error:

      WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : ActivityController
      Method : public abstract Vector getList(int)
      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.

      with the same result.

      I tried this with JBoss 3.2.4, 3.2.5 and 4.0.0RC1 und got always the same error.

      I read in a book that this procedure should work. So I wonder why this WARN occure and why this WARN produce an error.

      Have anyone any suggestion ? Could I use another kind of exception?

      Thanks for your help

      Marco