geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay D. McHugh (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-3096) @Resource injection of UserTransactions does not work in servlets
Date Fri, 13 Apr 2007 02:50:15 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488560
] 

Jay D. McHugh commented on GERONIMO-3096:
-----------------------------------------

Here is the stacktrace from the failure:

java.lang.NullPointerException
        at org.apache.geronimo.test.servlet.JPATestServlet.testEntityManagerFactory(JPATestServlet.java:50)
        at org.apache.geronimo.test.servlet.JPATestServlet.doProcess(JPATestServlet.java:123)
        at org.apache.geronimo.test.servlet.JPATestServlet.doGet(JPATestServlet.java:137)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:333)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:595)
Could not access entity manager


> @Resource injection of UserTransactions does not work in servlets
> -----------------------------------------------------------------
>
>                 Key: GERONIMO-3096
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3096
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence, web
>    Affects Versions: 2.0-M5
>            Reporter: Jay D. McHugh
>         Attachments: jpa-war-3096.tar.bz2
>
>
> If you use an @Resource annotation to inject a UserTranasction reference into a servlet,
you end up with a null transaction object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message