Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      5,526
    • Status Whiteboard:
      Hide

      gfv3-prelude-included

      Show
      gfv3-prelude-included

      Description

      v3 b19 promoted + ejb31 from dev build.

      public class TestServlet extends HttpServlet {
      @EJB
      private BeanRoot root;

      @Singleton
      @Startup
      @DependsOn(

      {"BeanLeaf"}

      )
      public class BeanRoot {

      When there is a session bean packaged in war,
      and the application doesn't use the session bean,
      the EJB injection for singleton and Singleton
      initialization work correctly.

      From attached tests:
      --asadmin deploy warSingletonStartup.war
      --access uri /warSingletonStartup/test
      --see output on browser about correct injection and order of initialization,
      ......
      2. injected root:
      ejb31.war.servlet._EJB31_GeneratedBeanRootIntf__Bean_@4e5056
      ......
      4. result=PostBeanLeafPostBeanRoot

      When the session bean is removed from, e.g. remove
      WEB-INF/classes/ejb31/war/servlet/HelloBean.class
      from above war, the EJB injection for singleton
      doesn't work any more. The output from browser shows:
      2. injected root: null
      javax.naming.NameNotFoundException: warSingletonStartup

        Activity

        Hide
        sherryshen added a comment -

        Created an attachment (id=1658)
        singletonstartup.zip has test war and source file

        Show
        sherryshen added a comment - Created an attachment (id=1658) singletonstartup.zip has test war and source file
        Hide
        Hong Zhang added a comment -

        Assign to mahesh for initial evaluation.

        Show
        Hong Zhang added a comment - Assign to mahesh for initial evaluation.
        Hide
        Mahesh Kannan added a comment -

        Fixed. Thanks to Hong. The issue was that the EjbSniffer was not returning the
        Singleton class from the getAnnotationTypes()_method.

        Show
        Mahesh Kannan added a comment - Fixed. Thanks to Hong. The issue was that the EjbSniffer was not returning the Singleton class from the getAnnotationTypes()_method.
        Hide
        sherryshen added a comment -

        Verified the fix in b22 promoted.

        Show
        sherryshen added a comment - Verified the fix in b22 promoted.
        Hide
        kumara added a comment -

        v3 defect tracking

        Show
        kumara added a comment - v3 defect tracking

          People

          • Assignee:
            Mahesh Kannan
            Reporter:
            sherryshen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: