I don't know if I can be a help...but I have some ideas.
There is a "classpath extension service" which can add additional .jar files and ... perhaps class directories to an existing loader repository.
In the JMX console, every JBoss classloader has an MBean name, so for your .ear or scoped .sar or whatever, you can adjust the classpath using this service.
Hi - thanks for your answer. I did somewhat solve the problem myself. I used the URLClassLoader to load the class. I am not sure it is the best way to do it, but it works for me :-)