0 Replies Latest reply on Aug 12, 2003 7:28 AM by janvlug

    How to set default datastore

    janvlug Newbie

      I try to set the default datastore via jbosscmp-jdbc.xml
      (see the file below):

      When deploying, I get this error:

      org.xml.sax.SAXParseException: Element "defaults" requires additional elements.

      What am I doing wrong?

      I am using jboss3.0.7

      jbosscmp-jdbc.xml:
      <?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>

      MySqlDS

      <enterprise-beans>

      <ejb-name>Klant</ejb-name>
      <table-name>klant</table-name>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>Id</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>naam</field-name>
      <column-name>Naam</column-name>
      </cmp-field>

      </enterprise-beans>
      </jbosscmp-jdbc>