Hi,
I am trying to port an application using CMP entity beans from JBoss 2.4.7 to JBoss 3.2.1. I am still using CMP 1.x for the moment.
The application is deployed without any error message, but when I try to call a finder method of the home object, I get the following exception with JBoss 3.2.1:
javax.ejb.FinderException: Unknown query: public abstract java.util.Collection apogia.RoomHome.findByQuery(java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,java.lang.Double,java.util.Date,java.util.Date) throws java.rmi.RemoteException,javax.ejb.FinderException
The jaws.xml file contains the following definition:
<ejb-name>Hotel</ejb-name>
findByQuery
({0} is null or category={0}) and
({1} is null or rating>={1}) and
({2} is null or name={2}) and
({3} is null or city={3}) and
({4} is null or state={4}) and
({5} is null or country={5})
state desc
findByLocation
(x >= {0}-8) and (x < {0}+8) and
(y >= {1}-8) and (y < {1}+8)
state desc
can anyone help ?