glassfish
  1. glassfish
  2. GLASSFISH-15225

[OSGi] CDI beans not accessible in web applications

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1_b33
    • Fix Version/s: 4.1.1
    • Component/s: cdi, OSGi-JavaEE
    • Labels:
      None

      Description

      This seems to be related to GLASSFISH-14842.

      However as that bug seems to be fixed this could be introduced by the OSGi/CDI integration.

      Attached a test project ( dummy-cdi-web-test.tar.gz ) which is a maven project building a WAB. To see the issue immediately try to access it like this:

      http://localhost:8080/dummy-web/?name=John

      The error I then get is:

      /index.xhtml @12,69 value="#

      {dummyBean.name}

      ": Target Unreachable, identifier 'dummyBean' resolved to null

      The application worked fine at least with 3.1 promoted b06.

        Issue Links

          Activity

          chaoslayer created issue -
          Sanjeeb Sahoo made changes -
          Field Original Value New Value
          Assignee Sanjeeb Sahoo [ ss141213 ] Sivakumar Thyagarajan [ sivakumart ]
          Sivakumar Thyagarajan made changes -
          Assignee Sivakumar Thyagarajan [ sivakumart ] Sanjeeb Sahoo [ ss141213 ]
          Sanjeeb Sahoo made changes -
          Attachment weld.faces-config.xml [ 23954 ]
          Priority Critical [ 2 ] Major [ 3 ]
          Sanjeeb Sahoo made changes -
          Fix Version/s 3.2 [ 10969 ]
          Tags 3_1-exclude
          chaoslayer made changes -
          Attachment dummy-web.war [ 24052 ]
          Sanjeeb Sahoo made changes -
          Link This issue depends on GLASSFISH-15353 [ GLASSFISH-15353 ]
          Sanjeeb Sahoo made changes -
          Tags 3_1-exclude 3_1-exclude 3_1_1-scrubbed
          Sanjeeb Sahoo made changes -
          Tags 3_1-exclude 3_1_1-scrubbed 3_1-exclude 3_1-next 3_1_1-scrubbed
          Sanjeeb Sahoo made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Status Whiteboard Workaround: Use attached faces-config.xml
          Jill Sato made changes -
          Fix Version/s 4.0 [ 10970 ]
          Fix Version/s 3.2 [ 10969 ]
          TangYong made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          Component/s cdi [ 10637 ]
          Sanjeeb Sahoo made changes -
          Fix Version/s 4.0.1 [ 16061 ]
          Fix Version/s 4.0 [ 10970 ]
          Romain Grécourt made changes -
          Fix Version/s 4.1 [ 16387 ]
          Fix Version/s 4.0.1 [ 16061 ]
          Romain Grécourt made changes -
          Fix Version/s 4.1.1 [ 17211 ]
          Fix Version/s 4.1 [ 16387 ]

            People

            • Assignee:
              Sanjeeb Sahoo
              Reporter:
              chaoslayer
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: