[GLASSFISH-20375] JNDI does not work in HttpUpgradeHandler#init and ReadListener#onDataAvailable, etc Created: 23/Apr/13  Updated: 23/Apr/13  Resolved: 23/Apr/13

Status: Resolved
Project: glassfish
Component/s: web_container
Affects Version/s: None
Fix Version/s: 4.0_b86_RC2

Type: Bug Priority: Major
Reporter: Shing Wai Chan Assignee: Shing Wai Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: 4_0-approved

 Description   

While running a Servlet 3.1 upgrade web application with CDI, I see the following in server.log:
No valid EE environment for injection of test.Test

After discussing with CDI team, we found that the JNDI lookup is not working in ReadListener#onDataAvailable.
After further investigation, I found that the JNDI lookup is not workiing for HttpUpgradeHandler and Read/WriteListener methods.



 Comments   
Comment by Shing Wai Chan [ 23/Apr/13 ]
  • What is the impact on the customer of the bug?
    JNDI is not working in upgrade and non-blocking IO listeners.
    This will also impact the CDI operations.
  • What is the cost/risk of fixing the bug?
    Calling InvocationManager.preInvoke/postInvoke around corresponding operations.
  • Is there an impact on documentation or message strings?
    No.
  • Which tests should QA (re)run to verify the fix did not destabilize GlassFish?
    SQE web and CDI related tests
  • Which is the targeted build of 4.0 for this fix?
    4.0_b86
  • If this an integration of a new version of a component from another project,
    what are the changes that are being brought in? This might be list of
    Jira issues from that project or a list of revision messages.
    N/A
Comment by Shing Wai Chan [ 23/Apr/13 ]

Sending appserver/web/web-core/src/main/java/org/apache/catalina/ContainerEvent.java
Sending appserver/web/web-core/src/main/java/org/apache/catalina/connector/InputBuffer.java
Sending appserver/web/web-core/src/main/java/org/apache/catalina/connector/OutputBuffer.java
Sending appserver/web/web-core/src/main/java/org/apache/catalina/connector/WebConnectionImpl.java
Sending appserver/web/web-core/src/main/java/org/apache/catalina/core/StandardPipeline.java
Sending appserver/web/web-glue/src/main/java/com/sun/web/server/WebContainerListener.java
Transmitting file data ......
Committed revision 61589.

Generated at Tue Jul 26 09:44:55 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.