For instance, the service is used to build a session on a commercial product.
Then in processors, I call the service to get the sesssion and do the stuff.
In order to connect to commercial product, I need to include additionnal JAR. So in the service, I put a property that dynamically update the classpath, where I put location for the folder that contains jar.
But, in the processor, I also need to have jar availabled in rder to avoid the no class def found exception. But this does not work for me. If I well understand, this is because there is a classloader per NAR. So if the service is in specific NAR, the classloader modification will not be applyed to the classloader used for the processor.
Then, I moved the service inside the same NAR than the processor.
But, I still not able to avoid the no class def found. The modification made by the service during the "OnEnable" is not applied when the processor is executed ?
I do not want to include external jar in my NAR, because it could be generic, meaning as if I load specific version of JDBC.