6 Replies Latest reply on Aug 13, 2012 7:17 PM by Demian Calcaprina

    hibernate.cfg.xml not found (JBPM5 / Install.demo)

    Touil Imad Newbie

      Hi all,


      After i configured all files to connect jboss to Mysql Database (i followed this link : http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e597)


      After i finished configuring files i'm trying now to run a sampl "Select" Query.


      but i found that there are no ihbernate.cfg.xml file on my folder installation. (normally it's supposed to be created by install.demo)


      Here is my Code lines to run the Query.


              Configuration configuration = new Configuration();

              SessionFactory  sessionFactory = configuration.configure().buildSessionFactory();

              Session session = sessionFactory.openSession();

              Transaction transaction = session.beginTransaction();

              org.hibernate.Query q = session.createQuery("from users");