Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.0[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Hi everyone,
I am using hibernate.cfg.xml for all my db connection configurations. Up to now everything works fine. Then I've added hibernate.c3p0.* properties in the hibernnatecfg sub-task so that I can use connection pooling in my application. But when I load my application (in Jonas) I found that hibernate tries to look for db-url property in hibernate.properties file instead of data source property from my_app.cfg.xml as before. As if when using c3p0, the latter forces hibernate to read properties in hibernate.properties file instead of reading properties in my_app.cfg.xml.
When I remove the hibernate.properties file from the conf directory, jonas could not start properly. I found errors in the log.
Can anyone please help me solve my problem.