Hi,

does your war also import those packages?
Does the bundle in question actually export the required Package?

regards, Achim


2014-12-30 23:22 GMT+01:00 jefoy1101 <[email protected]>:
>
> Good day,
>
> I am trying to research on my war implementation to karaf, my war has 3 jar
> dependencies that I installed as a bundle in my karaf, the way I did this
> is
> thru custom_install_myconfig.cfg
>
> I added a folder {karaf_base}/my_lib and put all my jar dependencies in
> that
> folder, once I start karaf all the jars are started and install as a bundle
>
> Then I deployed my war by copying my war file in the deploy folder, but im
> getting am exception
>
> Caused by: java.lang.ClassNotFoundException: com.myproject.className not
> found by ag [104]
>         at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)[org.apache.felix.framework-4.2.1.jar:]
>
> the class  com.myproject.className is already deployed as a bundle inside
> my
> my_lib folder
>
> How can I make this work? is there a better way to achieve my goal,
> basically I want to deploy my war in karaf with my jar dependencies to be
> osgi bundle so i could update them anytime I want
>
> Thanks in advance
>
>
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/deploying-a-war-with-dependencies-in-bundled-jars-tp4037488.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>


-- 

Apache Member
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/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to