Did you work yourself through the samples provided by Pax Web?
Take for example the war-spring-osgi sample.[1]
It is used in the following integration test for Karaf. [2]
For this sample to work you need to have spring and spring-dm installed as
feature first.
BTW. for your convenience I linked the 3.1.x samples which will also work
with latest Karaf 3.0.1.

a reference to a file path won't work since all bundles are usually stored
in some cache directory, this is different to the usual web containers.

regards, Achim


[1] -
https://github.com/ops4j/org.ops4j.pax.web/tree/pax-web-3.1.x/samples/war-spring-osgi
[2] -
https://github.com/ops4j/org.ops4j.pax.web/blob/pax-web-3.1.x/pax-web-itest-karaf/src/test/java/org/ops4j/pax/web/itest/karaf/SpringOsgiKarafTest.java


2014-04-21 19:22 GMT+02:00 asookazian2 <[email protected]>:

> I tried absolute file path and file name and that doesn't work either.
>
> Please advise how to resolve this, taking too long....
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032889.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
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Reply via email to