glassfish
  1. glassfish
  2. GLASSFISH-18544

Removing the ejb-container dependency when building the app client container causes NPE in naming

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: future release
    • Component/s: naming
    • Labels:
      None

      Description

      In trying to reduce the footprint of the ACC, one step is to remove the dependency on the ejb container. This causes no build-time problems because the ACC itself does not depend on the class(es) in the ejb container that are used for injecting @EJB references, for example.

      But if you rebuild the appserver/appclient/client/acc and appserver/appclient/client/acc-standalone components having removed the ejb dependency and then deploy an app containing an EJB and a client that uses the EJB, running the client fails with an NPE. (stack trace attached)

      To reproduce:

      1. cd to main/appserver/appclient/client/acc.
      2. Edit the pom.xml file to comment out the dependency on the ejb-container module.
      3. mvn clean install ; cp target/gf-client-module.jar glassfish3/glassfish/modules
      4. cd ../acc-standalone
      5. mvn clean install ; cp target/gf-client.jar glassfish3/glassfish/lib
      6. Restart the server.
      7. Deploy the attached app using "asadmin deploy --retrieve localdir TestEJB.ear"
      8. Try to run the client using "appclient localdir/TestEJBClient.jar"

      1. npe.txt
        4 kB
        Tim Quinn

        Issue Links

          Activity

          Tim Quinn created issue -
          Tim Quinn made changes -
          Field Original Value New Value
          Attachment npe.txt [ 49567 ]
          Attachment TestEJB.ear [ 49568 ]
          Tim Quinn made changes -
          Fix Version/s future release [ 11148 ]
          Tim Quinn made changes -
          Link This issue is related to GLASSFISH-4109 [ GLASSFISH-4109 ]
          Tom Mueller made changes -
          Assignee Cheng Fang [ cf126330 ] guojun.shan [ guojun.shan ]
          guojun.shan made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          guojun.shan made changes -
          Issue Type Bug [ 1 ] Task [ 3 ]

            People

            • Assignee:
              guojun.shan
              Reporter:
              Tim Quinn
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: