Re: Tapestry and JPA

2012-03-01 Thread heapifyman
Hi Andreas, thanks again. 2012/3/1 Andreas Fink > Yes. I am using jetty (7) in development and production. It works > perfectly fine. > I am following, pretty much directly, the setup here: > http://open.bekk.no/embedded-jetty-7-webapp-executable-with-maven/ > During development i start it fro

Re: Tapestry and JPA

2012-03-01 Thread Andreas Fink
Yes. I am using jetty (7) in development and production. It works perfectly fine. I am following, pretty much directly, the setup here: http://open.bekk.no/embedded-jetty-7-webapp-executable-with-maven/ During development i start it from a main method / tools menu (eclipse), in production with y

Re: Tapestry and JPA

2012-03-01 Thread heapifyman
Hi Andreas, thanks for the hint. Indeed I hadn't defined a DS. I tried your example now and it seems to be working, At least I don't get any exceptions during startup anymore. I had to tweak your code a little though: Context envC = ic.createSubcontext("java:comp/env"); Context jdbcC = envC.create

Re: Tapestry and JPA

2012-02-29 Thread Andreas Fink
Hi. Did you specify a jndi datasource? T5-jpa relies on it. Because i do not enable jndi in my container, i do it directly in my PersistenceModule with simplejndi like this: public class PersistenceModule { /** * Eeagerly loaded for {@link TapestryPersistenceUnitInfo} t

Complex use case about JSR-303, Tapestry, and JPA entity inheritance

2011-10-15 Thread Julien Martin
Hello, I have a JPA entity called ParentAccount that extends an abstract Account entity (see JPA inheritance). I have place the JSR-303 validation constraints in the Account entity. Now I have the following Tapestry class and templates and jsr-303 validation does not seem to work: *public class I

Tapestry and JPA/Spring transactions

2009-03-06 Thread Jason Tan
Is there a library/resource for opening and closing JPA EntityTransactions per request like how tapestry-hibernate does? I discovered the wiki pageon integrating Spring's @Transactional so you could plac