Why are servlets using the ejb3 user transaction?
| 2008-12-01 14:31:44,494 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jpa-test].[TestServlet]]
(http-localhost%2F127.0.0.1-8080-2) Servlet.se
| rvice() for servlet TestServlet threw exception
| java.lang.NullPointerException
| at
org.jboss.ejb3.tx.EJB3UserTransactionProvider.userTransactionStarted(EJB3UserTransactionProvider.java:65)
| at org.jboss.ejb3.tx.UserTransactionImpl.begin(UserTransactionImpl.java:74)
| at org.jboss.test.jpa.servlet.TestServlet.doGet(TestServlet.java:59)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
|
And why do you assume the user transaction will be configured with a registry
of listeners? The NPE is just sloppy.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193397#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...