-
1. Re: Problems with ejb-ql
246tnt Jun 30, 2002 9:00 PM (in response to 246tnt)Ok I've found one of the problems, it was in the DOCTYPE definition in ejb-jar.xml, I left an EJB 1.1 definition instead of 2.0.
But for now I'm running into a new problem .... :
[java] javax.ejb.FinderException: Unknown query: public abstract java.util.Collection test1.interfaces.StockOpHome.findTest() throws javax.ejb.FinderException,java.rmi.RemoteException
The StockOpHome.java has:
public Collection findTest() throws FinderException, RemoteException;
The ejb-jar.xml has:
<query-method>
<method-name>findTest</method-name>
<method-params>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM StockOp AS a WHERE a.ref IS NOT NULL]]>
</ejb-ql> -
2. Re: Problems with ejb-ql
dsundstrom Jul 1, 2002 2:01 AM (in response to 246tnt)That is weird. You are calling a finder and the persistence manager can not find the query specification. Try a clean build of your application.
If that doesn't work, increase the log level of the org.jboss.ejb.plugins.cmp to DEBUG in the log4j.xml file. Then run your application and search the server log for anything related to findTest. -
3. Re: Problems with ejb-ql
246tnt Jul 1, 2002 4:52 AM (in response to 246tnt)It's ok it works !
In the xml file ejb-jar, I misplaced an tag and the query were out the entity ...