[jboss-user] [JBoss Seam] - is hibernate.cfg.xml mandatory in examples of Seam 1.1 CR2 ?
cfranky
do-not-reply at jboss.com
Mon Dec 4 17:05:31 EST 2006
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991125#3991125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991125
More information about the jboss-user
mailing list