glassfish
  1. glassfish
  2. GLASSFISH-20375

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0_b86_RC2
    • Component/s: web_container
    • Labels:
      None

      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.

        Activity

        Hide
        Shing Wai Chan added a comment -

        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.

        Show
        Shing Wai Chan added a comment - 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.
        Hide
        Shing Wai Chan added a comment -
        • 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
        Show
        Shing Wai Chan added a comment - 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

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            Shing Wai Chan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: