title: Tomcat Unable to Read JNDI xml file
body: <p>I have just created a JNDI file for the spring boot application to read in the db info</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;Context path=&quot;/myapp&quot; debug=&quot;0&quot; reloadable=&quot;true&quot;&gt;
      &lt;Resource auth=&quot;Container&quot; name=&quot;jdbc/myapp&quot; 
      driverClassName=&quot;oracle.jdbc.driver.OracleDriver&quot;
      password=&quot;password&quot; 
      username=&quot;username&quot;
      type=&quot;javax.sql.DataSource&quot; 
      url=&quot;jdbc:oracle:thin:@192.168.1.33:1521/xe&quot; /&gt;
  &lt;/Context&gt;
  </code></pre>
  <p>But I have this error during startup of Tomcat 8 using the war file:</p>
  <blockquote>
  <p>java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 53; Document root element &quot;Context&quot;, must match DOCTYPE root &quot;null&quot;.</p>
  </blockquote>
  <p>I think there is something wrong with the DOCTYPE. How should I specify it?</p>
  <p>Please help. Thanks.</p>