Hello
Investigating on why the scala compiler (running as an OSGi service) could
load BundleContext in one environment and not in another. I found that the
first had org.apache.felix.main loaded as a bundle. So it seems the
compiler requiring the actual bytecode of the classes can acess the class
from this "normal" bundle but not from the system bundle (where
bundle.getResource("/") == null).
Is adding org.apache.felix.main as bundle a good approach? Or is there a
better way to make org.osgi.framework classes available to the scala
compiler?
Cheers,
Reto