You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Achim Nierbeck <bc...@googlemail.com> on 2017/05/01 05:03:38 UTC

Re: Standard Webapp unable to locate blueprint .xml

Either way is fine with samples.
I'm not sure we have enough web samples in Karaf,
usually all samples are directed to Pax-Web as it's the actual
implementation of the Web-Container.

regards, Achim


2017-04-28 10:55 GMT+02:00 smunro <st...@gmail.com>:

> Ok,
>
> turns out that I was missing something rather obvious. Our pom file already
> has a copy-resources maven goal setup, which targets webapp/build
> (generated
> angular content is placed here by another plugin). So anything above this
> level was not being placed into the WAR file. I just added another
> <resource> entry to copy /src/main/resources to copy over
> OSGI-INF/blueprint/rest.xml and everything is working as expected :)
>
> In addition, I removed the bundle activator.
>
> Thanks for helping me out with this one, sorry it turned out to be a minor
> thing, but at least I'm confident there is nothing wrong with Karaf or the
> maven plugin when using WAR types.
>
> I still think it would be good to do a simple example of the above, which
> I'm happy to do. I can either contribute that to your list of samples or
> link it to my own github.
>
> Stephen
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Standard-Webapp-unable-to-locate-blueprint-xml-tp4050233p4050278.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