1 Reply Latest reply on Feb 7, 2004 1:25 AM by juha

    EJB spec violation!

    nagulapati

      Hello All,

      When I am trying to deploy a bean, I am getting the following error:
      --------------------------------------------------------------
      23:59:38,132 WARN [verifier] EJB spec violation:
      Bean : HelloWorld
      Method : public abstract HelloWorld create() throws CreateException, RemoteException, ServiceException
      Section: 7.10.6
      Warning: The method return values in the home interface must be of valid types for RMI/IIOP.
      --------------------------------------------------------------

      Here is the code snippet from my home interface

      public HelloWorld create() throws javax.ejb.CreateException, java.rmi.RemoteException, javax.xml.rpc.ServiceException;

      I have a single method in my bean which is sayHello() and this is the method,

      public java.lang.String sayHello( ) throws javax.xml.rpc.ServiceException;


      Any pointers? Valid types for RMI/IIOP??

      Thanks,
      Vivek

        • 1. Re: EJB spec violation!

          The error is in your return type which is the HelloWorld interface, not your home interface. Most likely reason is to forget to declare RemoteExceptions in all of your remote methods in the remote interface.