From: Maraya M. <mar...@do...> - 2001-07-23 19:16:02
|
Doh. You're right, the naming convention threw me off. --- Michael R. Maraya > ---------- > From: Hermann RANGAMANA[SMTP:hra...@pr...] > Reply To: jbo...@li... > Sent: Monday, July 23, 2001 2:35 PM > To: jbo...@li... > Subject: Re: [JBoss-user] "The method return values in the home > interface must be of valid types for RMI/IIOP" > > Spec 1.1 section 6.10.6 : > "The return type for a create method must be the session bean's remote > interface type." > > The return type is correct. > > The problem is that on or more of your business methods throws > EJBException. > This is seemingly a bug in the verifier. You have just to move all > EJBException from your home and remote interface method and this message > will desappear. > > Reguards. > > --hermann > ----- Original Message ----- > From: "Maraya Michael" <mar...@do...> > To: <jbo...@li...> > Sent: Monday, July 23, 2001 4:53 PM > Subject: RE: [JBoss-user] "The method return values in the home interface > must be of valid types for RMI/IIOP" > > > > > > Looks like you're attempting to return the remote interface in your > > create() method instead of the bean implementation class. Change it to: > > > > > public interface UbDocSerializerHome extends EJBHome { > > > public UbDocSerializer create() throws RemoteException, > > > CreateException; > > } > > > > Also, there's no need to declare scope in an interface as all > > interface members are implicitly public, static and final (IIRC). > > > > --- > > Michael R. Maraya > > > > > ---------- > > > From: Alberto Vilches[SMTP:vil...@ya...] > > > Reply To: jbo...@li... > > > Sent: Monday, July 23, 2001 8:20 AM > > > To: jboss > > > Subject: [JBoss-user] "The method return values in the home interface > > > must be of valid types for RMI/IIOP" > > > > > > Hello jboss people!! > > > > > > I'm creating a session bean like this: > > > > > > public class UbDocSerializer implements SessionBean { > > > public String getDocView(Long ubDocId, Long ubTemplateId) > > > { > > > return new String("Hello!"); > > > } > > > } > > > ..... > > > public interface UbDocSerializerHome extends EJBHome { > > > public UbDocSerializerRemote create() throws RemoteException, > > > CreateException; > > > } > > > ..... > > > public interface UbDocSerializerRemote extends EJBObject, Remote { > > > public String getDocView(Long ubDocId, Long ubTemplateId) throws > > > RemoteException, Exception; > > > } > > > ... > > > > > > When deploying, I get this warning message: > > > > > > Method : public UbDocSerializerRemote create() throws > > > RemoteException, > > > CreateException; > > > Warning: The method return values in the home interface must be > > > of valid types for RMI/IIOP > > > > > > I've tryed to change the number and types of the throwing exceptions, > but > > > I > > > can't make it work. > > > > > > Where's the error? > > > > > > Znx > > > > > > -- > > > Best regards, > > > Alberto mailto:vil...@ya... > > > > > > > > > > > > > _______________________________________________ > > JBoss-user mailing list > > JBo...@li... > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > _______________________________________________ > JBoss-user mailing list > JBo...@li... > http://lists.sourceforge.net/lists/listinfo/jboss-user > |