find « cfg « JPA Q&A





1. NHibernate - Could not find file hibernate.cfg.xml    stackoverflow.com

I have hibernate.cfg.xml included in my WCF service library with

BuildAction = Content and   
Copy to output directory = Copy Always
However, when I run the application it is ...

2. cant find hibernate.cfg.xml    forum.hibernate.org

hey everyone. i need to get the connection from a datasource defined in a bean in applicationContext.xml, but i am having problem accessing the file. I tried: 1) Configuration conf = new Configuration(); SessionFactory session = conf.configure().buildSessionFactory(); but it says it doesnt find hibernate.cfg.xml 2) ApplicationContext ctx = new FileSystemXmlApplicationContext("applicationContext.xml"); ComboPooledDataSource ds = (ComboPooledDataSource) ctx.getBean("ds"); but it doesnt find too :(( ...

3. Cannot find hibernate.cfg.xml    forum.hibernate.org

[b]Hibernate version[/b]: 2.1.2 I go through [url]http://www.hibernate.org/hib_docs/reference/html/session-configuration.html[/url]. I tried to use hibernate.cfg.xml instead of hibernate.properties, but seems it didnt try to find hibernate.cfg.xml. As the document say, hibernate.cfg.xml have to put into root of CLASSPATH. Then I put hibernate.cfg.xml in three different places, but still didnt work. 1. [WEB-INF]\ 2. [WEB-INF]\lib\ 3. [WEB-INF]\classes\ Do i misunderstand the "root of CLASSPATH" ? ...

4. Trick to finding hibernate.cfg.xml    forum.hibernate.org

5. Hibernate can find hib...properties but not hib...cfg.xml    forum.hibernate.org

Hibernate version: 2.1.6 I've just installed Hibernate (running it with Netbeans), but have a problem where it can find hibernate.properties, but not hibernate.cfg.xml, even though they are in the same place, in the root of my classpath (and in the root of the Netbeans filesystem containing the packages). No error messages are displayed (or debug message, if switched on in log4j), ...

6. Class cant find my hibernate.cfg.xml, why?    forum.hibernate.org

Beginner Joined: Mon Mar 07, 2005 12:02 pm Posts: 39 Hibernate version: 2.0 Hi there, Im working with hibernate and when I try and run the class that does all the magic, I get a nasty exception: Code: net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:694) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:717) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:705) at ...

7. problem with finding hibernate.cfg.xml automatically    forum.hibernate.org

Hibernate version: 3.0.5 Hi, I'm having what ought to be a simple problem with hibernate, but neither I nor a more experienced hibernate user (friend) can figure out what the problem is. Essentially, I have a hibernate.cfg.xml file in the classpath. If I point to it in code: Configuration cfg = new Configuration(); // SHOULD NOT NEED THIS... File file = ...

8. hibernate can't find hibernate.cfg.xml    forum.hibernate.org

Newbie Joined: Wed Nov 21, 2007 1:35 pm Posts: 2 I have started a hibernate (version 3.2) project that is invoked remotely from a third-party product. I would prefer not to name the product right now and just describe the general parameters of the problem. The documentation for this products says that "... objects [are] executed remotely and run on a ...