You need to export it as a Package, therefore the Export-Package definition in the manifest has to contain your conf directory.
regards, Achim 2012/5/4 maaruks <[email protected]>: > > I generated bundle from a jar file. > > There is some some spring code that needs to access classpath resources from > *conf* directory. > Of course it doesn't work: > > Caused by: java.io.FileNotFoundException: class path resource > [conf/core-defaults.properties] cannot be opened because it does not exist > at > org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158) > > How can I grant access to *conf* ? > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-tp3961913.html > Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/>
