Seam « cfg « JPA Q&A





1. Could not parse configuration hibernate.cfg.xml    seamframework.org

Hey all. I've been trying to setup simple Seam/Hibernate application using examples from tutorial and some others. When I add Hibernate I get an exception saying it can't parse hibernate.cfg.xml. The very same hibernate.cfg.xml I used in a pure hibernate test app just to test it and it's ok. So here we go :

2. Error: hibernate.cfg.xml not found when l launch a test    seamframework.org

FAILED CONFIGURATION: @BeforeSuite startSeam org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm at org.jboss.seam.Component.newInstance(Component.java:2105) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112) at org.jboss.seam.init.Initialization.init(Initialization.java:734) at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:920) at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58) Caused by: java.lang.RuntimeException: could not deploy a process definition at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:300) at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) at org.jboss.seam.Component.callComponentMethod(Component.java:2210) at org.jboss.seam.Component.callCreateMethod(Component.java:2133) at org.jboss.seam.Component.newInstance(Component.java:2093) ... 21 more Caused by: org.hibernate.HibernateException: hibernate.cfg.xml not found at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147) at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405) ...

3. externalize hibernate.cfg.xml    seamframework.org

4. hibernate.cfg.xml is not picked up by Seam    seamframework.org