1 Reply Latest reply on Dec 16, 2002 5:01 AM by Juha Lindfors

    Invalid XML

    glm Newbie

      Hi;
      I am getting an error on startup related to my jbosscmp-jdbc.xml file. I get the following errors :

      14:24:23,977 ERROR [XmlFileLoader] XmlFileLoader: File file:/D:/jboss-3.2.0beta2_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/packing
      Agent.jar/99.packingAgent.jar-contents/META-INF/boxPool.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 61. Error message: The content of element
      type "entity" must match "(ejb-name,(datasource,datasource-mapping)?,create-table?,remove-table?,read-only?,read-time-out?,row-locking?,pk-constraint
      ?,read-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-field*,load-groups?,eager-load-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?)"
      .
      14:24:24,008 ERROR [XmlFileLoader] XmlFileLoader: File file:/D:/jboss-3.2.0beta2_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/packing
      Agent.jar/99.packingAgent.jar-contents/META-INF/boxPool.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 90. Error message: The content of element
      type "entity" must match "(ejb-name,(datasource,datasource-mapping)?,create-table?,remove-table?,read-only?,read-time-out?,row-locking?,pk-constraint
      ?,read-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-field*,load-groups?,eager-load-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?)"
      .


      here is the entity definitions that are causing the problems :


      <ejb-name>Boxes</ejb-name>
      java:/DefaultDS
      <datasource-mapping>mySQL</datasource-mapping>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <read-only>false</read-only>
      <read-time-out>1000</read-time-out>
      <pk-constraint>true</pk-constraint>
      <fk-constraint>true</fk-constraint>
      <table-name>boxes</table-name>
      <cmp-field>
      <field-name>packId</field-name>
      <column-name>PackId</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>length</field-name>
      <column-name>Length</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>width</field-name>
      <column-name>Width</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>height</field-name>
      <column-name>Height</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>maxWeight</field-name>
      <column-name>MaxWeight</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>boxWeight</field-name>
      <column-name>BoxWeight</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>type</field-name>
      <column-name>Type</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>packingThickness</field-name>
      <column-name>PackingThickness</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>boxPrice</field-name>
      <column-name>BoxPrice</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>id</column-name>
      </cmp-field>


      <ejb-name>Packing</ejb-name>
      java:/DefaultDS
      <datasource-mapping>mySQL</datasource-mapping>
      <create-table>true</create-table>
      <remove-table>true</remove-table>
      <read-only>false</read-only>
      <read-time-out>1000</read-time-out>
      <pk-constraint>true</pk-constraint>
      <fk-constraint>true</fk-constraint>
      <table-name>packing</table-name>
      <cmp-field>
      <field-name>status</field-name>
      <column-name>Status</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>recordStatus</field-name>
      <column-name>RecordStatus</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>packingThickness</field-name>
      <column-name>PackingThickness</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>id</column-name>
      </cmp-field>


      can someone point out what I have done wrong? I have looked at the DTD and my xml file seems right.

      Thanks,

      Gary Marsh