Issue Details (XML | Word | Printable)

Key: GLASSFISH-20375
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Shing Wai Chan
Reporter: Shing Wai Chan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

JNDI does not work in HttpUpgradeHandler#init and ReadListener#onDataAvailable, etc

Created: 23/Apr/13 01:15 AM   Updated: 23/Apr/13 12:29 PM   Resolved: 23/Apr/13 12:29 PM
Component/s: web_container
Affects Version/s: None
Fix Version/s: 4.0_b86_RC2

Time Tracking:
Not Specified

Tags: 4_0-approved
Participants: Shing Wai Chan


 Description  « Hide

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.



Shing Wai Chan added a comment - 23/Apr/13 01:18 AM
  • 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

Shing Wai Chan added a comment - 23/Apr/13 12:29 PM

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.