I have the same probelm with JBoss AS 4.2.1 ...
The endpoint:
| @Stateless @WebService
| @RolesAllowed({"clerk"})
| public class CalculatorBean implements CalculatorRemote, CalculatorLocal {
|
| @Resource SessionContext sessionCtx;
|
| public Integer sum(Integer a, Integer
JBoss 4.2.1 doen´t seem to support JPA Injection in servlets either.
Trying the same WAR i have tryed with 5 beta2, I´m facing the following
problems:
The Persistence Unit is not considered automatically.
I had to manually start the EMFactory up from a Filter.init or some
ServletContextListener
I´m trying to do JPA Injection in a WAR module with JBoss 5 beta2.
I´m configuring the persistence.xml according to
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/entityconfig.html
Here is my persistence.xml:
http://java.sun.com/xml/ns/persistence";
| xmlns:xsi="http:/