regarding your "maven" confidence ... do you happen to have a "Proxy" connected to your maven setup? In rare cases, or flaky internet connections your bundles might not have been a jar at all, but a http error code ;) This happens in rare cases. Best to do a mvn clean install -U for updating all dependencies.
regards, Achim 2017-06-13 15:26 GMT+02:00 <[email protected]>: > > On 13 June 2017 at 12:32 Jean-Baptiste Onofré <[email protected]> wrote: > > > > > > I don't understand why you have the pax-web feature. > > > > Do you have it defined in bootFeatures ? Or do you install it by hand ? > > > > I can confirm that I don't have pax-web feature on my custom distro. > > So I created a completely fresh directory, deleted the contents of my .m2 > maven repository cache, created a pom.xml file with your example contents > in, and ran "mvn clean install". > > I ran target/assembly/bin/karaf.bat. > feature:list then lists pax-http as "started". > > Interestingly though I have no exceptions in the log file. > > Well that's interesting. > Worryingly, deleting my .m2 directory contents seems to have altered the > behaviour. Going back to my original example, it now works closer to how I > would expect. > I admit my knowledge of Maven is low, but it's a cache isn't it? > Re-downloading the dependencies ought not to have changed anything? That > worries me. > > The good news is that this seems to have fixed things. I no longer have > odd exceptions in the log. > > Confidence in Karaf has increased, confidence in maven lowered! > Thanks for the help. > -- 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
