glassfish
  1. glassfish
  2. GLASSFISH-11442

javax.annotation.Resource in javax.annotation.jar missing lookup element

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Incomplete
    • Affects Version/s: V3
    • Fix Version/s: 3.1
    • Component/s: naming
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      11,442

      Description

      I'm using the Java EE 6 SDK FCS (v3 b74.2), and both the SDK-bundled Javadoc and
      the javax.annotation.jar (in glassfish/modules/endorsed) don't have a
      javax.annotation.Resource annotation that defines a lookup element. You get a
      compiler error when trying to use @Resource(lookup="...").

      However, the Java EE 6 spec describes, and the Common Annotation 1.1 spec
      defines, this element. The Javadoc online documents this method:
      http://java.sun.com/javaee/6/docs/api/javax/annotation/Resource.html

      Roberto has confirmed the bug.

        Activity

        Hide
        ksak added a comment -

        This was a client-side compilation issue. GlassFish v3 includes the updated @Resource in its endorsed
        directory, so the server is automatically configured to use that. Clients need to explicitly set
        java.endorsed.dir to $V3_HOME/modules/endorsed.

        Show
        ksak added a comment - This was a client-side compilation issue. GlassFish v3 includes the updated @Resource in its endorsed directory, so the server is automatically configured to use that. Clients need to explicitly set java.endorsed.dir to $V3_HOME/modules/endorsed.

          People

          • Assignee:
            ksak
            Reporter:
            Ian Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: