I have got the example comes from the template working with jboss 3.0.4. But after I start to use the new jboss 3.2, the ejb jar can not be deployed, the error message is like this:
07:27:02,329 WARN [verifier] EJB spec violation:
Bean : TestEntity
Method : public abstract TestEntity findAnotherByB(int, String) throws RemoteExcepti
on, FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be associated with a
query element in the deployment descriptor.
It is a warning, but after this it will say:
07:27:02,355 ERROR [MainDeployer] could not create deployment: file:/vol1/java/jboss
-3.2.0_tomcat-4.1.24/server/default/deploy/han-ejb-test.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, s
ee above for error messages.
My question is what happened, what changed for jboss, the code is working for 3.0.4
Thanks.
check your home interface and make sure each finder has a corresponding declaration in your ejb-jar.xm file