I have gotten the managed-bean to obtain an EntityManager reference now by
calling:
| EntityManagerFactory emf =
Persistence.createEntityManagerFactory(lynxManager);
| EntityManager em = emf.createEntityManager();
|
I still cannot inject it via:
|
I have tried to inject a PersistenceContext into a JSF managed bean POJO as is
outlined here. The backing bean is as follows:
package net.epweb.jsf.backing;
|
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
|
| import net.epweb.ejb.entity.*;
[ServerImpl] Home Dir:
/Users/tswall/Applications/jboss-5.0.0.Beta1
09:20:01,732 INFO [ServerImpl] Home URL:
file:/Users/tswall/Applications/jboss-5.0.0.Beta1/
09:20:01,732 INFO [ServerImpl] Library URL:
file:/Users/tswall/Applications/jboss-5.0.0.Beta1/lib/
09:20:01,733 INFO [ServerImpl] Patch
I just noticed that the web.xml config stuff didn't paste as it actually
appears. Here's my whole web.xml file:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
I am using the JSF 1.2 Sun implementation that is prepackaged with JBoss 5.0.
Additionally, I did try to explode the WAR, and everything appeared to be OK.
Finally, I packaged the WAR into an EAR and it appears to be working well. It
is the only module in the EAR, so I'm totally baffled as to