I am trying to define a bean with a custom finder using Xdoclet 1.2 beta 2. The code seems to generate correctly and compile but when I deploy Jboss gives a deployment error.
Bean:
/**
*
* @ejb:bean
* name="Month"
* jndi-name="MonthBean"
* type="CMP"
* cmp-version="2.x"
*
* @ejb:finder
* signature="Month findCurrentMonth(String cm)"
* query="SELECT OBJECT(m) FROM Month as m WHERE m.currentMonth=?1"
*
* @ejb:transaction type="Required"
*
* @ejb:persistence table-name="Month"
*
* @ejb:interface
* remote-class="uk.org.timalibentley.accounts.data.interfaces.Month"
*
*/
JBOSS:
2003-08-25 08:20:52,360 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
Bean : Month
Method : public abstract Month findCurrentMonth(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.
2003-08-25 08:20:52,370 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/D:/jboss-3.2.2/server/default/tmp/deploy/tmp29047AccountsApp.ear-contents/AccountsEJB.jar