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