Oups... :( I missed it... Thank's Dimitri! John, simply change the declaration of you bean method to:
public String ejbFindByPrimaryKey(String key) throws FinderException You will still be allowed to throw ObjectNotFoundException, but the verifier will no more complain. The verifier verfies the exact class exception equality, not if they are "compatible" through inheritance. Cheers, Sacha > -----Message d'origine----- > De : Dmitri Colebatch [mailto:[EMAIL PROTECTED]] > Envoye : mercredi, 3 octobre 2001 14:09 > A : Sacha Labourey > Cc : John LYC; Jboss Mailing List > Objet : RE: [JBoss-user] Jboss warning whenever i deploy. > > > ObjectNotFoundException is a subclass of FinderException... > > On Wed, 3 Oct 2001, Sacha Labourey wrote: > > > John, > > > > I guess the message is quite clear... > > > > > Section: 9.2.8 > > > Warning: All the exceptions defined in the throws clause of an ejbFind > > > method of the entity bean class must be included in the throws > > > clause of the > > > matching find method of the home interface. > > > > Look at section 9.2.8 of the EJB 1.1 spec. > > > > in short: exception on finder methods of the bean must be > present on finder > > declaration of the home. > > > > Your bean finder declaration: > > > public String ejbFindByPrimaryKey(String key) throws > > > ObjectNotFoundException > > > > => ObjectNotFoundException may be thrown > > > > Your home declaration for this finder: > > > public Contact findByPrimaryKey(String primaryKey) throws > > > RemoteException, FinderException; > > > > Where is the ObjectNotFoundException declaration on this method > declaration > > of the home? > > > > > > > > > > Sacha > > > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user