I am new to JBoss development / using XDoclet. I started with the sample/template downloaded from jboss.org.

I have the following XDoclet comments at the top of my bean class:

 * @ejb:finder signature="java.util.Collection findByFileID(long pFileID)"
 *
 * @jboss:finder-query name="findByFileID"
 *                     query="FILE_ID = {1}"

But, nothing is generated in any of the deployment descriptors for this method. It is, however, added to the generated home interface.

So, I get the following error when deploying:

23:16:53,390 WARN [verifier] EJB spec violation:
Bean : Check
Method : public abstract Collection findByFileID(long) throws RemoteException, FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.


Obivously, I'm missing something. Can someone clue me in?

Thanks
Nathan



-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC. Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to