0 Replies Latest reply on Aug 30, 2006 2:42 AM by sriram4java1

    problem in creating datasource

    sriram4java1

      Hi All,
      Iam getting the following error when building sessionfactory.


      12:02:26,282 ERROR [Configuration] Could not configure datastore from file: hibernate.cfg.xml
      java.net.MalformedURLException: hibernate.cfg.xml (The system cannot find the file specified)


      Iam using hibernate2.0 and my hibernate.cf.xml is


      <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

      <hibernate-configuration>


      <session-factory>
      root
      cpt

      jdbc:mysql://localhost:3306/cenvat


      com.mysql.jdbc.Driver


      net.sf.hibernate.dialect.MySQLDialect

      true

      <!-- Mapping files -->


      </session-factory>
      </hibernate-configuration>