We were using JBoss 3.0.7, but now we want to switch to 3.2.1.
We were using CMP custom finders (we have created ejbFind method and implemented it in CMP bean) as we needed to do some advanced queries against DB. Everything worked fine (except read-ahead).
Today, I downloaded JBoss 3.2.1 and threw the same ejb jars as we were using into it and unfortunetally I get the following error during deployement:
EJB spec violation:
Bean : Company
Warning: CMP entity beans may not define the implementation of a finder.
and of course deployement fails.
My questions are: what has changed since 3.0.7 that causes this error? Is it still possible to use custom finders in 3.2.1? Will it be possible in 4.0?
Thanks for any help,
Unfortunately the verifier does not take into account the non spec compliant extension to CMP custom finders. In 3.2 any error from the verifier will stop the deployment. Go to your jboss-service.xml and search for 'StrictVerifier' and set it to false.