2 Replies Latest reply: May 27, 2013 1:53 AM by Martin Schaap RSS

    org.xml.sax.SAXParseException in sessions.xml

    Martin Schaap
      Hello,

      Recently I migrated a 10.1.3.4 project to 11.1.1.3 and than to 11.1.2.4. When I deploy the project to the IntegratedWeblogicServer org.xml.sax.SAXParseException exceptions are thrown regarding elements in the sessions.xml.

      session.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <toplink-sessions version="11g Release 1 (11.1.1.5.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <session xsi:type="server-session">
      <name>default</name>
      <primary-project xsi:type="xml">META-INF/kiMap.xml</primary-project>
      <login xsi:type="database-login">
      <platform-class>oracle.toplink.platform.database.oracle.Oracle11Platform</platform-class>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <datasource>jdbc/AlfaDS</datasource>
      <bind-all-parameters>false</bind-all-parameters>
      <byte-array-binding>false</byte-array-binding>
      <optimize-data-conversion>false</optimize-data-conversion>
      <trim-strings>false</trim-strings>
      <jdbc-batch-writing>false</jdbc-batch-writing>
      </login>
      </session>
      </toplink-sessions>

      Exceptions

      org.xml.sax.SAXParseException: <Line 9, Column 22>: XML-24534: (Fout) Element 'datasource' is niet verwacht.
      ***
      org.xml.sax.SAXParseException: <Line 10, Column 31>: XML-24534: (Fout) Element 'bind-all-parameters' is niet verwacht.
      ***
      org.xml.sax.SAXParseException: <Line 11, Column 30>: XML-24534: (Fout) Element 'byte-array-binding' is niet verwacht.
      ***
      org.xml.sax.SAXParseException: <Line 12, Column 36>: XML-24534: (Fout) Element 'optimize-data-conversion' is niet verwacht.
      ***
      org.xml.sax.SAXParseException: <Line 13, Column 24>: XML-24534: (Fout) Element 'trim-strings' is niet verwacht.
      ***
      org.xml.sax.SAXParseException: <Line 14, Column 30>: XML-24534: (Fout) Element 'jdbc-batch-writing' is niet verwacht.
      ***
      org.xml.sax.SAXParseException: <Line 15, Column 15>: XML-24521: (Fout) Element is niet voltooid: 'login'

      Translation
      is niet verwacht = not expected
      is niet voltooid = not complete

      Please help me with this configuration.

      With kind regards

      Martin

      Edited by: Martin Schaap on May 17, 2013 2:52 AM

      Edited by: Martin Schaap on May 20, 2013 10:31 PM