Don't include unchecked exceptions in your throws clauses (i.e.
EJBException). Remote interfaces cannot throw EJBException.
Toby.
Jonathan Ackerman wrote:
>
> Hi all,
>
> I'm getting a strange Verifier error when deploying my bean, namely:
>
> [Verifier]
> Bean : BookManagerBean
> Method : public abstract BookManager create() throws RemoteException,
> EJBException, CreateException
> Section: 6.10.6
> Warning: The method return values in the home interface must be of valid
> types for RMI/IIOP.
>
> Now I've looked closely at my Remote and Home interfaces and they look OK, I
> have even compared them to some of the JBoss test beans and they match up.
>
> What am I doing wrong.
>
> My remote interface is defined as follows:
> //--------------------------------------------------------------------------
> -----
> package example.booklist.server;
>
> import java.rmi.RemoteException;
> import javax.ejb.EJBObject;
> import javax.ejb.EJBException;
> import example.booklist.common.BookInfo;
>
> public interface BookManager extends EJBObject
> {
> public BookInfo getBook(String isbn) throws EJBException,RemoteException;
> }
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]