[jboss-jira] [JBoss JIRA] (WFLY-9824) Getting javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB EJBHomeLocator for "jsr-77/jsr-77/EJB" in resourceadpater
shubhashish dash (JIRA)
issues at jboss.org
Wed Feb 14 04:02:00 EST 2018
[ https://issues.jboss.org/browse/WFLY-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
shubhashish dash updated WFLY-9824:
-----------------------------------
Description:
I have deployed a EAR in wildfly 11.0.0 Final. The EAR has two sub deplyoment one is a .rar and another is a .war . The both the deployment contains below code
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
final InitialContext initialContext = new InitialContext();
final ManagementHome mejb = (ManagementHome) initialContext.lookup("ejb/mgmt/MEJB");
final ObjectName searchpattern = new ObjectName("*:j2eeType=J2EEServer,*");
final Management management = mejb.create();
final Set<ObjectName> set = management.queryNames(searchpattern, null);
if (set != null && set.size() != 0) {
final String s = management.getAttribute(set.iterator().next(), "serverVendor").toString();
System.out.println(s);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
But while running the application I am getting "javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB EJBHomeLocator for "jsr-77/jsr-77/EJB"" error. This error only comes incase of rar and not in the war.
I have attached the sample app with this issue.
was:
I have deployed a EAR in wildfly 11.0.0 Final. The EAR has two sub deplyoment one is a .rar and another is a .war . The both the deployment contains below code
final InitialContext initialContext = new InitialContext();
final ManagementHome mejb = (ManagementHome) initialContext.lookup("ejb/mgmt/MEJB");
final ObjectName searchpattern = new ObjectName("*:j2eeType=J2EEServer,*");
final Management management = mejb.create();
final Set<ObjectName> set = management.queryNames(searchpattern, null);
if (set != null && set.size() != 0) {
final String s = management.getAttribute(set.iterator().next(), "serverVendor").toString();
System.out.println(s);
}
But while running the application I am getting "javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB EJBHomeLocator for "jsr-77/jsr-77/EJB"" error. This error only comes incase of rar and not in the war.
I have attached the sample app with this issue.
> Getting javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB EJBHomeLocator for "jsr-77/jsr-77/EJB" in resourceadpater
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-9824
> URL: https://issues.jboss.org/browse/WFLY-9824
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 11.0.0.Final
> Reporter: shubhashish dash
> Assignee: Jason Greene
> Priority: Blocker
> Attachments: EAR.ear, server.log
>
>
> I have deployed a EAR in wildfly 11.0.0 Final. The EAR has two sub deplyoment one is a .rar and another is a .war . The both the deployment contains below code
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> final InitialContext initialContext = new InitialContext();
> final ManagementHome mejb = (ManagementHome) initialContext.lookup("ejb/mgmt/MEJB");
> final ObjectName searchpattern = new ObjectName("*:j2eeType=J2EEServer,*");
> final Management management = mejb.create();
> final Set<ObjectName> set = management.queryNames(searchpattern, null);
> if (set != null && set.size() != 0) {
> final String s = management.getAttribute(set.iterator().next(), "serverVendor").toString();
> System.out.println(s);
> }
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> But while running the application I am getting "javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB EJBHomeLocator for "jsr-77/jsr-77/EJB"" error. This error only comes incase of rar and not in the war.
> I have attached the sample app with this issue.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list