0 Replies Latest reply on Aug 22, 2003 12:25 AM by cs_tss

    [Help] Cause problem when adding one relationship to EJBs

    cs_tss Newbie

      Dear all,

      For short, here is my beans detail.
      beans : Staff, Company, PrimaryKeys
      primarykeys is used to maintain every bean's pk counter.

      When there is no relatoinship, they works fine.
      But, when i add a 1:n relationship to Company:Staff. an error occurs. That is an error i have got.

      Depends On Me: org.jboss.deployment.DeploymentException: Configuration found in jbosscmp-jdbc.xml for relation Company-Staff but relation is not a jbosscmp-jdbc-managed relation in ejb-jar.xml, ObjectName: jboss.j2ee:jndiName=PrimaryKeysLocalHome,service=EJB

      In addition, i wonder why the error message would relate to PrimaryKeysLocalHome.

      And i will attach 3 XML files: jboss, ejb-jar and jbosscmp-jdbc. Also, i will attach a zip file include all the source. <----attachments could be found in a thread
      http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= thanks to all.