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 "" > element from web.xml, is this correct? I can't find any documentation for such an element in either

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

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 "" element from web.xml, is this correct? Christophe

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 EntityM

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 a

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" > Sent: Sunday, July 29, 2007 4:47 AM > Subject

Re: Resource Injection

2007-07-29 Thread Johnny Kewl
- Original Message - From: "John McPeek" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, July 29, 2007 4:47 AM Subject: Resource Injection I want to use Resource Injection and I have been looking around, but all I can find is threads about stuff

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 top