Tomcat 6.0, JPA and Resource Injection

2007-09-13 Thread A. Alonso Domínguez
Hi there, I'm trying to set up a web application which uses Java Persistence with Tomcat 6.0. I had googled and searched a lot of mailing lists but I didn't found a response for my doubts. My application uses JSF 1.2 from Sun's RI, some of the managed-beans defined at that application have

Re: Tomcat 6.0, JPA and Resource Injection

2007-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alonso, A. Alonso Domínguez wrote: javax.naming.NameNotFoundException: The name java:comp is not associated to this context. [snip] @PersistenceContext(unitName = benedetti, name = java:comp/jpa/benedetti) private EntityManager

Re: Tomcat 6.0, JPA and Resource Injection

2007-09-13 Thread A. Alonso Domínguez
Hi Christopher, I have tried java:comp/env/..., java:/comp/env/..., java:jpa/... and jpa/... as values for the name attribute of PersistenceContext annotation. None of that paths worked for me. It seems that Tomcat 6 ignores the persistence-context-ref element from web.xml, is this correct?

Re: Tomcat 6.0, JPA and Resource Injection

2007-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alonso, A. Alonso Domínguez wrote: I have tried java:comp/env/..., java:/comp/env/..., java:jpa/... and jpa/... as values for the name attribute of PersistenceContext annotation. None of that paths worked for me. It seems that Tomcat 6 ignores

RE: Tomcat 6.0, JPA and Resource Injection

2007-09-13 Thread Caldarale, Charles R
From: A. Alonso Domínguez [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6.0, JPA and Resource Injection It seems that Tomcat 6 ignores the persistence-context-ref element from web.xml, is this correct? I can't find any documentation for such an element in either the 2.4 or the 2.5 servlet

Re: Resource Injection

2007-07-29 Thread ben short
Or have a look at www.springframework.org On 7/29/07, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: John McPeek [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, July 29, 2007 4:47 AM Subject: Resource Injection I want to use Resource

Resource Injection

2007-07-28 Thread John McPeek
I want to use Resource Injection and I have been looking around, but all I can find is threads about stuff that doesn't work related to JSF. Does Tomcat 6 support Resource Injection? Thanks, John - To start a new topic, e