Jonathan Ackerman wrote:
>
> Yep. That fixed it.
>
> So any idea who/when an EJBException should be thrown ?
Any unchecked exception will be wrapped up and rethrown
as EJBException. Ok, at least I think so.
>
> Thanks
>
> Jonathan
>
> -----Original Message-----
> From: Alexander Kogan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 16 January 2001 10:24 a.m.
> To: jBoss
> Subject: Re: [jBoss-User] Strange Verifier Error
>
> Jonathan,
>
> Have you tried to remove EJBExceptions from "throws"
> clause. It's just a guess - it may not help.
>
> 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;
> > }
> >
> //--------------------------------------------------------------------------
> > -----
> >
> > My home interface is:
> >
> //--------------------------------------------------------------------------
> > -----
> > package example.booklist.server;
> >
> > import java.rmi.RemoteException;
> > import javax.ejb.EJBHome;
> > import javax.ejb.EJBException;
> > import javax.ejb.CreateException;
> > import java.io.Serializable;
> >
> > public interface BookManagerHome extends EJBHome
> > {
> > public BookManager create() throws
> > CreateException,EJBException,RemoteException;
> > }
> >
> //--------------------------------------------------------------------------
> > -----
> >
> > and BookInfo is:
> >
> //--------------------------------------------------------------------------
> > -----
> > package example.booklist.common;
> >
> > public class BookInfo implements java.io.Serializable
> > {
> > public String isbn;
> > public String title;
> > public String author;
> > }
> >
> //--------------------------------------------------------------------------
> > -----
> >
> > -------------------------------------------------------------------
> > Jonathan Ackerman Senior Consultant
> > Optimation Phone: +64 9 3075567
> > L4, Optimation House, Fax: +64 9 3097919
> > 43 College Hill Rd, Mobile: +64 25 319307
> > Auckland, mailto:[EMAIL PROTECTED]
> > New Zealand http://www.optimation.co.nz/
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > List Help?: [EMAIL PROTECTED]
>
> --
> __________________________________________________
> Alexander Kogan PTC www.ptc.com
> [EMAIL PROTECTED] 140 Kendrick St. Needham MA 02494
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
__________________________________________________
Alexander Kogan PTC www.ptc.com
[EMAIL PROTECTED] 140 Kendrick St. Needham MA 02494
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]