Without knowing the problem in detail, would it be an option to have a JBoss module and dependencies from the SARs to that module?
Actually the sar(my-comp1-app.sar) file has dependency on my custom module custom.lib(where i have the jar file containing bootstrap class SpringBootstrapBean). The problem is, SpringBootstrapBean is not able to load the
"META-INF/applicationContext.xml"file located in the my-comp1-app.sar. It throws file not found!.
Accessing files directly in Java EE is a bit tricky. Can you use the classloader getResourceAsStream for the actual loading? Have you tried using a File object to check with getAbsolutePath to see which path is actually is trying to load?
Thanks Nicklas Karlsson. No luck. TCCL and SpringBootstrapBean class loader are same.
In short, here is actual scenario.
I have a class(SpringBootstrapBean.class) associated to a custom module(module1), and i have a sar deployer (my-app-comp.sar) having a dependency on module1.
my-app-comp.sar has jboss-service.xml and applicationContext.xml. jboss-service.xml has an mbean entry for SpringBootstrapBean.class. SpringBootstrapBean does not have visibility to access the applicationContext.xml placed inside my-app-comp.sar.
problem is similar to