You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Neo Anderson <ja...@yahoo.co.uk> on 2009/08/02 01:54:13 UTC
tapestry5 hibernate using persistece.xml
Hi
I follow the tutorial at http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate to integrate hibernate with tapestry 5. Everything seems to work fine. But I discover if I switch to use persistence.xml then the application will keep complaining hibernate.cfg.xml not found.
Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): /hibernate.cfg.xml not found
Is there any way to tell tapestry 5 to use persistence.xml instead of hibernate.cfg.xml?
I search on the wiki, but seems no one use persistence.xml. Is it because tapestry 5 can only integrate with hibernate not jpa?
Thanks for help.
env: tapestry 5.1.0.5 / maven 2.0.9/ java 1.6.0_10
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: tapestry5 hibernate using persistece.xml
Posted by Ulrich Stärk <ul...@spielviel.de>.
You are absolutely right, the tapestry-hibernate module doesn't support
the JPA yet.
Uli
On 02.08.2009 01:54 schrieb Neo Anderson:
> Hi
>
> I follow the tutorial at http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate to integrate hibernate with tapestry 5. Everything seems to work fine. But I discover if I switch to use persistence.xml then the application will keep complaining hibernate.cfg.xml not found.
>
> Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): /hibernate.cfg.xml not found
>
> Is there any way to tell tapestry 5 to use persistence.xml instead of hibernate.cfg.xml?
>
> I search on the wiki, but seems no one use persistence.xml. Is it because tapestry 5 can only integrate with hibernate not jpa?
>
> Thanks for help.
>
> env: tapestry 5.1.0.5 / maven 2.0.9/ java 1.6.0_10
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: tapestry5 hibernate using persistece.xml
Posted by "Juan E. Maya" <ma...@gmail.com>.
I found this project in google a few days ago: http://code.google.com/p/t5jpa/
I am not sure of its status though
On Sun, Aug 2, 2009 at 1:54 AM, Neo
Anderson<ja...@yahoo.co.uk> wrote:
>
> Hi
>
> I follow the tutorial at http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate to integrate hibernate with tapestry 5. Everything seems to work fine. But I discover if I switch to use persistence.xml then the application will keep complaining hibernate.cfg.xml not found.
>
> Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): /hibernate.cfg.xml not found
>
> Is there any way to tell tapestry 5 to use persistence.xml instead of hibernate.cfg.xml?
>
> I search on the wiki, but seems no one use persistence.xml. Is it because tapestry 5 can only integrate with hibernate not jpa?
>
> Thanks for help.
>
> env: tapestry 5.1.0.5 / maven 2.0.9/ java 1.6.0_10
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org