1 Reply Latest reply on Jan 3, 2003 1:18 PM by glm

    jbosscmp-jdbc.xml <defaults> section error

    glm Newbie

      Hi,
      I am getting the following error message

      2003-01-02 13:58:25,197 ERROR [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File file:/D:/jboss-3.2.0beta2_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/PackingAgent.ear/94.PackingAgent.ear-contents/Boxes.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 44. Error message: The content of element type "defaults" must match "((datasource,datasource-mapping)?,create-table?,remove-table?,read-only?,read-time-out?,row-locking?,pk-constraint?,fk-constraint?,preferred-relation-mapping?,read-ahead?,list-cache-max?,fetch-size?,unknown-pk?,create-entity-command?,entity-command?)".

      Which is very confusing since I cut a pasted the default section from the standardjbosscmp-jdbc.xml file.

      The defaults section looks like this:


      <!-- datasource>java:/DefaultDS</datasource -->
      <!-- datasource-mapping>Hypersonic SQL</datasource-mapping -->
      java:/DefaultDS
      <datasource-mapping>mySQL</datasource-mapping>

      <create-table>true</create-table>
      <remove-table>false</remove-table>
      <read-only>false</read-only>
      <read-time-out>300</read-time-out>
      <pk-constraint>true</pk-constraint>
      <fk-constraint>false</fk-constraint>
      <row-locking>false</row-locking>
      <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
      <read-ahead>
      on-load
      <page-size>1000</page-size>
      <eager-load-group>*</eager-load-group>
      </read-ahead>
      <list-cache-max>1000</list-cache-max>

      <unknown-pk>
      <key-generator-factory>UUIDKeyGeneratorFactory</key-generator-factory>
      <unknown-pk-class>java.lang.String</unknown-pk-class>
      <jdbc-type>VARCHAR</jdbc-type>
      <sql-type>VARCHAR(32)</sql-type>
      </unknown-pk>

      <entity-command name="default"/>



      The only modifications are in bold.

      Any help appreciated.

      thanks,

      Gary