I am trying to use Java compiler API with in Web application and it requires classpath information on the classloader which loaded all the JARs from WEB-INF/lib folder of web app.
JBoss 5.1.0 uses VFS internally and its classloader somehow does not extend URLClassloader.
Under these circumstances, how can I get Web Apps classloaders classpath info?
Is there anyway, to configure System Classloader to be used for Web App ?
Appreciate any help.
We have this code that can integrate with underlying VFS:
See its "servlet" module.
There is no explicit docs, but the code, imo, is simple enough to see what you need to use to get access to VFS / DeploymentUnit.
Or shoot any question here, for further help.