Looks like he could easily avoid the warning by having his ejbFindByPrimaryKey() throw FinderException instead of the more specific ObjectNotFoundException.
Putting that aside, however, it seems that no warning should be necessary when the home interface's throws clause contains a superset of the implementation's. Certainly, that is a very reasonable interpretation of 9.2.8 based on the way Java interfaces/implementations work. (i.e. no compiler error/warning is issued when implementing an interface with methods which throw more specific exceptions than the interface requires, so long as the interface's throws clause contains a superset) Erin ----- Original Message ----- From: "Sacha Labourey" <[EMAIL PROTECTED]> To: "John LYC" <[EMAIL PROTECTED]>; "Jboss Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 7:26 AM Subject: RE: [JBoss-user] Jboss warning whenever i deploy. > 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 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user