Hi Marco,

The short answer is that you are always deploying ejbs when you expect a container to run them, we've just been assuming as much as possible to make your life easier.

Check out the "Autogenerate the openejb-jar.xml file" section in part 3 for details:

http://www.theserverside.com/articles/article.tss? l=ContainerDrivenTestingSeriesP3

-David

On Jul 26, 2005, at 9:12 AM, Marco Mistroni wrote:

hello all,
i am writing junit tests using Maven following examples listed at t his

http://www.theserverside.com/articles/article.tss? l=ContainerDrivenTestingSeriesP2

i defined a finder method on my EJB, but when i run tests i have
following exception

java.util.Collection findEntryByDateTypeUserDate(
     int type, java.util.Date start, java.util.Date end, String user)

but when i run tests i have followign exception..

 CMP 1.1 Beans with finder methods cannot be autodeployed; finder
methods require OQL Select statements which cannot be generated
accurately.

is there a way to overcome the problem, since i am not actually
deploying but just running tests?

thanx and regards

 marco



Reply via email to