Ok - I've just fixed this in cvs. your signature will now need to be "java.util.Collection findAll()" etc. cheers dim On Sat, 8 Sep 2001, Andreas Schildbach wrote: > I added these two finders... > > @ejb:finder signature="Collection findAll()" query="SELECT DISTINCT > OBJECT(a) FROM Account a" > @ejb:finder signature="Account findByName()" query="SELECT DISTINCT > OBJECT(a) FROM Account a WHERE a.name = ?1" > > ...to my bean, and xdoclet spits out the following error(s). Seems like the > return-type parameter is missing from the documentation. Should I remove the > return-type from the signature parameter then? Btw. return-types are by > definition not part of signatures, but the example "Collection findAll()" > from the xdoclet-documentation implies that. > > Here is the error output: > > [ejbdoclet] Generating Javadoc > [ejbdoclet] Javadoc execution > [ejbdoclet] Loading source files for package de.bchfms.depot.ejb... > [ejbdoclet] Constructing Javadoc information... > [ejbdoclet] Create Home Interface for: de.bchfms.depot.ejb.AccountEJB > [ejbdoclet] Create Remote Interface for: de.bchfms.depot.ejb.AccountEJB > [ejbdoclet] Create ejb-jar.xml > [ejbdoclet] (TemplateEngine.invokeMethod 490 ) Invoking method > failed: classTagVal > ue , line=12 of template file: xdoclet\ejb\ejb-body.j > [ejbdoclet] Mandatory parameter 'result-type' missing for @ejb:finder tag in > de.bchfms.dep > ot.ejb.AccountEJB class > [ejbdoclet] at xdoclet.SubTask.mandatoryParamNotFound(SubTask.java:2680) > [ejbdoclet] at xdoclet.SubTask.getTagValue(SubTask.java:2325) > [ejbdoclet] at xdoclet.SubTask.classTagValue(SubTask.java:1581) > [ejbdoclet] at java.lang.reflect.Method.invoke(Native Method) > [ejbdoclet] at > xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java:486) > [ejbdoclet] at > xdoclet.util.TemplateEngine.invokeContentMethod(TemplateEngine.java:593 > ) > [ejbdoclet] at > xdoclet.util.TemplateEngine.generate(TemplateEngine.java:394) > [ejbdoclet] at xdoclet.SubTask.ifHasClassTag(SubTask.java:1264) > .... > > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
