Hi!

I have not found a detailed explanation of how resource files that are
included in a bundle may be used by the bundle. Specifically:

I am trying to OSGi-fy an jar via the BND tool (it's a maven project). The
structure is the classic one

src/main/java --> includes all the packages
src/main/resources --> includes necessary property files

Problem:

ConverterService service = new ConverterService();
service.setPrefixFile("eaPrefixes.ttl");

produces a file not found exception. Specifically for some reason instead of
looking inside the classpath of the bundle, it looks at the root directory
of Karaf. So, if I place eaPrefixes.ttl there it works..

My jar includes eaPrefixes.ttl at the root of the jar.

Any help is much appreciated! 





--
View this message in context: 
http://karaf.922171.n3.nabble.com/resource-loading-explanation-tp4033988.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to