Just like with any other OSGi application if you want to use a package, you
need to import it, by importing I mean have the right Import-Package header
in your manifest. So going back to your use-case, make sure the WAB does
have a import-package for org.slft4j.* for example (as it is probably the
most commonly used logging mediation layer right now).
About spring-web application, yes there is a sample at the Pax Web samples
section at [1].

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples/war-spring-osgi


2014-04-15 18:50 GMT+02:00 asookazian2 <[email protected]>:

> "With Karaf you have all you need to use logging, just import your favorite
> logging framework package. Pax Logging will do the rest for you. "
>
> coud you please provide an example, not sure what you mean by "import your
> favorite logging frmwk".  where/how?
>
> also, is there a Spring web app Karaf example somewhere???
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/cannot-resolve-to-absolute-file-path-in-karaf-3-0-0-tp4032407p4032777.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