title: Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
body: <p>I am getting the following exception:   </p>
  
  <pre><code>Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
          at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1491)
          at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
          at com.ClientForSave.main(ClientForSave.java:26)
      Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
          at org.dom4j.io.SAXReader.read(SAXReader.java:484)
          at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1481)
          ... 2 more
  </code></pre>
  
  <p>Entire stack trace</p>
  
  <p>Here is my config file:</p>
  
  <pre><code>&lt;hibernate-configuration&gt; 
      &lt;session-factory&gt; 
         &lt;property name="hibernate.connection.driver_class"&gt;oracle.jdbc.driver.OracleDriver&lt;/property&gt; 
         &lt;property name="hibernate.connection.url"&gt;jdbc:oracle:thin:@localhost:1521:devt2x&lt;/property&gt;
         &lt;property name="hibernate.connection.username"&gt;scott&lt;/property&gt; 
         &lt;property name="hibernate.connection.password"&gt;tiger&lt;/property&gt; 
         &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.Oracle9Dialect&lt;/property&gt;
         &lt;property name="show_sql"&gt;true&lt;/property&gt; 
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>