I have a java class "A" written and deployed as a testA.war file and the class "B" is deployed in an testB.ear file. Class "A" extends class "B". Everything compiles fine. But when deployed in jBoss, a factory class in testB.ear file tries to load class "A" using Class.forName(). But somehow, class A couldn't be loaded.
Is there a configuration in jBoss that can be used to have both TestA.war file and testB.ear file use the same classloader? OR what is the best solution for this?
The testB.ear is something that I can not modify and I need to write a subclass by extending a class inside the ear file.