You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jay D. McHugh (JIRA)" <ji...@apache.org> on 2007/04/13 04:36:15 UTC
[jira] Created: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
@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
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.
[jira] Updated: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Jay D. McHugh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay D. McHugh updated GERONIMO-3096:
------------------------------------
Attachment: jpa-war-3096.tar.bz2
This is the full source to build the war file (already built jpa-war.war in the target directory).
There are two servlets:
http://localhost:8080/jpa-war/TestFails
http://localhost:8080/jpa-war/TestWorks
Run the test fails first to see the NPE.
You can only run the second test once.
(otherwise it will fail because you are trying to persist over an existing record).
> @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.
[jira] Closed: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Jay D. McHugh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay D. McHugh closed GERONIMO-3096.
-----------------------------------
> @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-M7
> Reporter: Jay D. McHugh
> Assignee: Tim McConnell
> Fix For: 2.0-M7
>
> Attachments: jpa-war-3096.tar.bz2, 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.
[jira] Updated: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim McConnell updated GERONIMO-3096:
------------------------------------
Affects Version/s: (was: 2.0-M6)
2.0-M7
Fix Version/s: 2.0-M7
> @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-M7
> Reporter: Jay D. McHugh
> Assignee: Tim McConnell
> Fix For: 2.0-M7
>
> Attachments: jpa-war-3096.tar.bz2, 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.
[jira] Updated: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Jay D. McHugh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay D. McHugh updated GERONIMO-3096:
------------------------------------
Attachment: jpa-war-3096.tar.bz2
Reattaching with apache license granted
> @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, 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.
[jira] Resolved: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Jay D. McHugh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay D. McHugh resolved GERONIMO-3096.
-------------------------------------
Resolution: Fixed
I don't know who fixed this (Tim?) but it is working now.
I do not know what revision fixed it though.
> @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-M7
> Reporter: Jay D. McHugh
> Assignee: Tim McConnell
> Fix For: 2.0-M7
>
> Attachments: jpa-war-3096.tar.bz2, 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.
[jira] Commented: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Jay D. McHugh (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Jay D. McHugh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay D. McHugh updated GERONIMO-3096:
------------------------------------
Affects Version/s: (was: 2.0-M5)
2.0-M6
> @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-M6
> Reporter: Jay D. McHugh
> Attachments: jpa-war-3096.tar.bz2, 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.
[jira] Assigned: (GERONIMO-3096) @Resource injection of
UserTransactions does not work in servlets
Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim McConnell reassigned GERONIMO-3096:
---------------------------------------
Assignee: Tim McConnell
> @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-M6
> Reporter: Jay D. McHugh
> Assigned To: Tim McConnell
> Attachments: jpa-war-3096.tar.bz2, 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.