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

          Hide
          Tim Quinn added a comment -

          Attached the stack trace during an attempted client run having commented out the ejb-container dependency (npe.txt)

          and a test EAR with an EJB and a client (TestEJB.ear)

          Show
          Tim Quinn added a comment - Attached the stack trace during an attempted client run having commented out the ejb-container dependency (npe.txt) and a test EAR with an EJB and a client (TestEJB.ear)
          Hide
          jthoennes added a comment -

          Tim, is there a dedicated plan to reduce the footprint in the ACC client?
          We would like to use this in our JavaWS application.

          Show
          jthoennes added a comment - Tim, is there a dedicated plan to reduce the footprint in the ACC client? We would like to use this in our JavaWS application.
          Hide
          Tim Quinn added a comment -

          There is a low-priority but nevertheless ongoing effort to reduce the ACC footprint.

          Please feel free to vote for

          http://java.net/jira/browse/GLASSFISH-4109

          which captures this requirement.

          Show
          Tim Quinn added a comment - There is a low-priority but nevertheless ongoing effort to reduce the ACC footprint. Please feel free to vote for http://java.net/jira/browse/GLASSFISH-4109 which captures this requirement.
          Hide
          Tom Mueller added a comment -

          Reassigning to component lead as the assignee is no longer with the project.

          Show
          Tom Mueller added a comment - Reassigning to component lead as the assignee is no longer with the project.

            People

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

              Dates

              • Created:
                Updated: