My experience shows that JBoss error messages are unfortunately not very reliable. Means, they usually point out the real error but mostly also other errors that are seemingly related to the real problem. Can be very confusing sometimes, since an error in one bean can give you error messages for other beans that are absolutely fine.
Bernie -----Urspr�ngliche Nachricht----- Von: SainTiss [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 7. Dezember 2002 20:51 An: XDoclet Mailing Betreff: [Xdoclet-user] finder method oddity Hi, I'm trying to find out about these finder methods, and I've stumbled upon an oddity here: I created two finder methods, using the following XDoclet tags: * @ejb.finder * signature="java.util.Collection findByName(java.lang.String name)" * * @ejb.finder * signature="java.util.Collection findBySaint(java.lang.String saint)" The difference between them, is basically that there IS a "name" field, but there is NO "saint" field in the EJB... What happens is that calling the findByName method results in the expected behaviour (ie all entities with the given name are returned), but the findBySaint method results in a FinderException being thrown... This all looks very logical to me, since of course, the container cannot know what I mean by "findBySaint"... What isn't logical though, is that JBoss complains *twice* when deploying: 20:44:38,632 INFO [EJBDeployer] Bean : Persoon Method : public abstract Collection findByName(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. 20:44:38,633 INFO [EJBDeployer] Bean : Persoon Method : public abstract Collection findBySaint(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. >From my above experiences, I agree that JBoss should complain about the findBySaint method, but if it complains about the findByName method as well, then why is it working? Thanks, Hans This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
