Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17178

EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 18.0.1.Final
    • EJB
    • None
    • ---
    • ---

      A stateless EJB is deployed within an application (let's call it app A), server logs are as follows:

       

       

      java:global/app/core-ejb/UserServiceBean!mypackage.UserService
      java:app/core-ejb/UserServiceBean!mypackage.UserService
      java:module/UserServiceBean!mypackage.UserService
      java:jboss/exported/app/core-ejb/UserServiceBean!mypackage.UserService
      ejb:app/core-ejb/UserServiceBean!mypackage.UserService
      java:global/app/core-ejb/UserServiceBean
      java:app/core-ejb/UserServiceBean
      java:module/UserServiceBean
      

       

       

      This bean is tried to be looked up from a different application (let's call it app B) deployed on the same server.

      It is looked up using the ejb namespace: ejb:app/core-ejb/UserServiceBean!mypackage.UserService

      This JNDI url is correct but we got this error:  javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for \"app/core-ejb/UserServiceBean\", view is interface mypackage.UserService, affinity is None.

      To be mentioned that the client code is called within a @PostConstruct method of a Singleton, Startup EJB in app B.

      App B is started after app A (app A is declared as deployment dependency of app B in jboss-all.xml).

      JNDI look up works well with java:global namespace, but ejb namespace was also expected to work in this case.

        1. WFLY-17178.7z
          25.73 MB
          Olivier Asuncion

              cfang@redhat.com Cheng Fang
              olivier_77 Olivier Asuncion (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: