Hi Vassilis
I don't know the API of the ConverterService class, but this is an OSGi
issue. If you want to load a resource from a bundle you have to access it
via the bundle classloader. E.g. the class org.osgi.framework.Bundle has the
method getResource(String) to fetch a resource from the bundle and return
its java.net.URL object. Depending on the API of the ConverterService class,
this URL might be used to access the resource.
File test = new File("eaPrefixes.ttl"); will never fetch a resource from the
bundle. It accesses the file system and is not a valid test in this case.
Regards
Jochen
--
View this message in context:
http://karaf.922171.n3.nabble.com/resource-loading-explanation-tp4033988p4034027.html
Sent from the Karaf - User mailing list archive at Nabble.com.