title: "Connection cannot be null when hibernate.dialect is not set" and sessionFactory error
body: <p>I want to import in eclipse and connect with PostgreSQL database. PostgreSQL is configured on another machine.</p>
  <p>I have imported the war file in eclipse and changed 3 file with IP address of the machine where PostgreSQL is installed. Three files were hibernate.cnf.xml, spring-database.xml, na-dispatcher.xml.  Like</p>
  <pre><code>jdbc:postgresql://192.168.1.15:5432/mydatabase.  
  </code></pre>
  <p>After that I tried running the application in tomcat server with eclipse IDE.</p>
  <p>I got error like</p>
  <blockquote>
  <p>./web-inf/sping-security.xml</p>
  </blockquote>
  <h1>1</h1>
  <blockquote>
  <p>Connection cannot be null when 'hibernate.dialect' not set</p>
  </blockquote>
  <p>Also an error regarding session factory and all.
  I can't paste the code because we can't use internet in office. Please help me in resolving this. Tomorrow is the deadline. <code>no code</code></p>
  <h1>2</h1>
  <blockquote>
  <p>Error creating bean with name ‘sessionFactory’ defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set</p>
  </blockquote>