views:

34

answers:

0

When I try to deploy my simple app I get the following error:

Bean   : TestEJB
Method : public abstract S2KManager create() throws CreateException, RemoteException
Section: 7.10.6
Warning: The method return values in the home interface must be of valid types for RMI/IIOP.

First some technical information:

  • JBoss 3.2.1
  • JDK 1.4.2
  • EJB2

(no way to migrate to more up-to-date versions of neither JBoss not JDK)

My home interface is quite short:

public interface TestHome extends javax.ejb.EJBHome {
    public Test create()
        throws javax.ejb.CreateException, java.rmi.RemoteException;
}

Remote interface is very long but few important informations:

  • interface extends javax.ejb.EJBObject
  • methods throws only RemoteException and some user-defined exceptions which all extends Exception
  • all returned types are basic (like String, int, Date, boolean) or implements Serializable

My bean implementation is also long but:

  • class implements SessionBean
  • methods ejbActivate, ejbPassivate, ejbRemove, ejbCreate are empty and do not throw any exceptions
  • all other methods are bussines methods and throws user-defined exceptions which all extends Exception (the same as in remote interface)

Any ideas what might be the problem?