Hi Not specially a Sling question, but I hope someone can help: I try to solve SLING-1708. Because the created class SlingResourceLoader is instantiated by Velocity and I have to get a service from osgi there, I tried to use FrameworkUtil.getBundle( getClass() ) inside this class. So far so good. But when I try to compile the bundle with maven, I always get "cannot find symbol" for FrameworkUtil.getBundle, but artifact org.osgi.core is included in the pom.xml. And what's really confusing: if I try to call FrameworkUtil.createFilter( "xy" ) I get no errors. Has anybody an idea what's going wrong here?
best regards mike