1 Reply Latest reply on Feb 2, 2002 8:33 PM by davidjencks

    jbosscmp-jdbc deployment error..

    mpetteys


      When I deploy a CMP bean that is created by XDoclet into a fresh copy of JBOSS that is built from CVS today, I get the following errors. I think it must be a problem with the dtd not being found to validate or something.. Any ideas. At the bottom is the jbosscmp-jdbc default that i am using..

      2002-02-02 15:36:11,502 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CVEReference] Loading standardjbosscmp-jdbc.xml : file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/conf/default/standardjbosscmp-jdbc.xml
      2002-02-02 15:36:12,133 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CVEReference] jar:file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
      2002-02-02 15:36:12,193 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 7. Error message: Element "defaults" does not allow "type-mapping" here.
      2002-02-02 15:36:12,203 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 7. Error message: Element "type-mapping" does not allow text.
      2002-02-02 15:36:12,213 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 7. Error message: Element "type-mapping" requires additional elements.
      2002-02-02 15:36:12,233 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 8. Error message: Element "defaults" does not allow "debug" here.
      2002-02-02 15:36:12,243 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 8. Error message: Element type "debug" is not declared.
      2002-02-02 15:36:12,253 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 9. Error message: Element "defaults" requires additional elements.
      2002-02-02 15:36:12,263 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 16. Error message: Element "entity" does not allow "create-table" here.
      2002-02-02 15:36:12,283 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 17. Error message: Element "entity" does not allow "remove-table" here.
      2002-02-02 15:36:12,293 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 18. Error message: Element "entity" does not allow "tuned-updates" here.
      2002-02-02 15:36:12,303 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 18. Error message: Element type "tuned-updates" is not declared.
      2002-02-02 15:36:12,323 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 34. Error message: Element "entity" does not allow "create-table" here.
      2002-02-02 15:36:12,353 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 35. Error message: Element "entity" does not allow "remove-table" here.
      2002-02-02 15:36:12,364 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 36. Error message: Element "entity" does not allow "tuned-updates" here.
      2002-02-02 15:36:12,374 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 56. Error message: Element "entity" does not allow "create-table" here.
      2002-02-02 15:36:12,394 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 57. Error message: Element "entity" does not allow "remove-table" here.
      2002-02-02 15:36:12,404 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 58. Error message: Element "entity" does not allow "tuned-updates" here.
      2002-02-02 15:36:12,414 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 81. Error message: EMPTY content models must have no content.
      2002-02-02 15:36:12,434 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 84. Error message: Element "ejb-relationship-role" does not allow "foreign-key-fields" here.
      2002-02-02 15:36:12,444 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 84. Error message: Element type "foreign-key-fields" is not declared.
      2002-02-02 15:36:12,454 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 85. Error message: Element type "foreign-key-field" is not declared.
      2002-02-02 15:36:12,464 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 91. Error message: EMPTY content models must have no content.
      2002-02-02 15:36:12,484 INFO [Default] XmlFileLoader: File file:/C:/java/jboss_cvs/build/output/jboss-3.0.0DR1/tmp/deploy/59.securestate-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 93. Error message: Element "ejb-relationship-role" does not allow "foreign-key-fields" here.

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">

      <jbosscmp-jdbc>

      java:/SecureStateDSDefault
      <type-mapping>PostgreSQL</type-mapping>
      true


      <enterprise-beans>


      <ejb-name>CompanyAccount</ejb-name>
      <table-name>cmp_companyaccount</table-name>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <tuned-updates>true</tuned-updates>

      <cmp-field>
      <field-name>id</field-name>
      <column-name>id</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>name</field-name>
      <column-name>name</column-name>
      </cmp-field>




      <ejb-name>CVEReference</ejb-name>
      <table-name>cve</table-name>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <tuned-updates>true</tuned-updates>

      <cmp-field>
      <field-name>descriptionData</field-name>
      <column-name>description</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>id</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>referenceData</field-name>
      <column-name>ref</column-name>
      </cmp-field>




      <ejb-name>UserAccount</ejb-name>
      <table-name>cmp_useraccount</table-name>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <tuned-updates>true</tuned-updates>

      <cmp-field>
      <field-name>companyId</field-name>
      <column-name>companyId</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>email</field-name>
      <column-name>email</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>id</column-name>
      </cmp-field>



      </enterprise-beans>


      <ejb-relation>
      <ejb-relation-name>User-Is-Member-Of-Company</ejb-relation-name>
      <foreign-key-mapping>
      <ejb-relationship-role>
      <ejb-relationship-role-name>user-belongsto-company</ejb-relationship-role-name>
      <fk-constraint>yes</fk-constraint>
      <foreign-key-fields>
      <foreign-key-field>
      <field-name>companyid</field-name>
      <column-name>companyid</column-name>
      </foreign-key-field>
      </foreign-key-fields>
      </ejb-relationship-role>
      <ejb-relationship-role>
      <ejb-relationship-role-name>company-has-users</ejb-relationship-role-name>
      <foreign-key-fields/>
      </ejb-relationship-role>
      </foreign-key-mapping>
      </ejb-relation>


      </jbosscmp-jdbc>