users@javaserverfaces.java.net

RE: Resource Injection

From: Jason Lee <lee_at_iecokc.com>
Date: Tue, 6 Jun 2006 13:48:29 -0500

That did the trick. I'm getting an NPE now creating my query, but
that's progress! Thanks!
 
--
Jason Lee
Programmer/Analyst
 
  _____  
From: Ludovic.Champenois_at_Sun.COM [mailto:Ludovic.Champenois_at_Sun.COM] 
Sent: Tuesday, June 06, 2006 1:32 PM
To: Jason Lee
Subject: Re: Resource Injection
Jason Lee wrote: 
	Hmm.   Well, that didn't work for me either (I was using
	session-scoped).  For what it's worth, I was injecting EMF as,
EM is not
	thread-safe.
	
	At any rate, here's my ear structure in case this helps anyone
help me.
	:P
	
	  
Check if this web.xml is 2.5 compliant, and the faces-config.xml is JSF
1.2
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<http://java.sun.com/xml/ns/javaee> 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance> 
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
<http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-
app_2_5.xsd> 
     version="2.5">
Ludo