4 Replies Latest reply on Mar 26, 2007 11:52 AM by gavin.king

    is hibernate.cfg.xml mandatory in examples of Seam 1.1 CR2 ?

      I have installed Seam 1.1 CR2 and I have tried to deploy the registration example in the JBoss 4.0.5 GA server but I got the following exception:

      ....
      16:49:56,484 INFO [Lifecycle] starting up: org.jboss.seam.core.hibernate
      16:49:56,484 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
      16:49:56,484 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
      16:49:56,500 ERROR [[/seam-registration]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.hibernate.HibernateException: /hibernate.cfg.xml not found
       at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
      ....
      


      If I add a convenient hibernate.cfg.xml file to the jboss-seam-registration.ear, the application is sucessfully deployed.

      Can anyone help me to clarify if the hibernate.cfg.xml file is now mandatory in the new Seam version (Seam 1.1 CR2) ?

      Thanks

      Maria Consuelo Franky