1 Reply Latest reply on Aug 22, 2003 9:17 AM by cs_tss

    Relationship problem

    cs_tss

      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

      And i will attach 3 XML files: jboss, ejb-jar and jbosscmp-jdbc. Also, i will attach a zip file include all the source.

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

      Thanks to all.

        • 1. Re: Relationship problem
          cs_tss

          I found my mistake!

          In the ejb-jar.xml, the end quote </enterprise-beans> is placed in wrong place. it should be above the

          Thanks all who read this post....