I am getting the following error while doing the lookup and calling the method.
Caused by: java.lang.LinkageError: loader constraint violation: when resolving interface method "com.osi.netexpert.gwa.service.GWAService.buildMib(Lcom/osi/netexpert/gwa/snmp/mib/MibBuilder;)Lcom/osi/netexpert/gwa/snmp/mib/MibId;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, com/osi/mibmanager/service/MibManagerPojoService, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for resolved class, com/osi/netexpert/gwa/service/GWAService, have different Class objects for the type pert/gwa/snmp/mib/MibBuilder;)Lcom/osi/netexpert/gwa/snmp/mib/MibId; used in the signature
After some googling I found that in order to solve this we need to remove the duplicacy of the class.
But I was wondering if there is anything else that can be done. Like, is there some way we can put some restrictions jboss-deployment-structure.xml file or some other configuration file.
Removing dependency is somewhat not possible as of now from the application.