Re: Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-23 Thread Alex Kotchnev
It seems that you might be setting the wrong hibernate configuration property - at least this thread ( http://stackoverflow.com/questions/5303671/configure-hibernate-to-connect-to-database-via-jndi-datasource ) on stack overflow indicates that the datasource property is

Re: Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-23 Thread Michael Prescott
Hah, embarrassing. Thanks very much, Alex. Glad it was something dumb and not something complicaeted, though! On 23 July 2012 09:10, Alex Kotchnev akoch...@gmail.com wrote: It seems that you might be setting the wrong hibernate configuration property - at least this thread (

Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-20 Thread Michael Prescott
I'm having trouble getting a connection through tapestry-hibernate. Any help would be appreciated! I imagine I'm not seeing some small thing I've overlooked. I'm configuring the hibernate connection in code, to use a DataSource provided by the servlet container. The data source is available -

Re: Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-20 Thread Michael Prescott
The problem goes away if I provide a hibernate.cfg.xml file with all the database connection properties, and set HibernateSymbols.DEFAULT_CONFIGURATION to true. So I suppose my question is: What do I need to do to get rid of the hibernate.cfg.xml file? I need to have my application use a data