1 Reply Latest reply on May 16, 2003 2:32 AM by benholland

    Problem in finder method (CMP) while deploying

    gmlingus

      Hi,
      I am working on jboss-3.2.0_tomcat-4.1.24. I am trying to deploy my first CMP Entity bean on the server. I am facing problem while deploying the jar file.
      it says:

      12:33:05,269 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss
      -3.2.0_tomcat-4.1.24/server/default/deploy/ejb-test.jar
      12:33:05,459 INFO [EJBDeployer] looking for nested deployments in : file:/D:/jb
      oss-3.2.0_tomcat-4.1.24/server/default/deploy/ejb-test.jar
      12:33:06,100 WARN [verifier] EJB spec violation:
      Bean : TestEntity
      Method : public abstract TestEntity findByName(String, String) throws RemoteExce
      ption, FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated wit
      h a query element in the deployment descriptor.

      12:33:06,120 ERROR [MainDeployer] could not create deployment: file:/D:/jboss-3.
      2.0_tomcat-4.1.24/server/default/deploy/ejb-test.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
      d, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:501)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)


      My xdoclet entry in the bean file is :
      * @ejb:finder signature="test.interfaces.TestEntity findByName( java.lang.String fname, java.lang.String lname)"
      *
      * @jboss:finder-query name="findByName"
      * query="fname = {0} AND lname = {1}"

      I am not able to trouble shoot the problem. Please help me on this.