As little hint, Check the PAX Web integration tests. The embedded tests did work for me with that setup.
Regards, Achim sent from mobile device Am 26.02.2016 5:20 nachm. schrieb "Benson Margulies" <[email protected]>: > I am failing to come up with a working set of pom dependencies for the > karaf pax-exam container with karaf 4.0.4 once I stop putting my > entire assembly's dependency tree in the tree. Has someone got a > working example to share? The tests in the ops4j repo use > org.apache.karaf.features:standard:xml:features:3.0.3:test. > > On Fri, Feb 26, 2016 at 9:20 AM, Benson Margulies <[email protected]> > wrote: > > I see why. > > > > > /Users/benson/.m2/repository/org/eclipse/birt/runtime/org.eclipse.osgi/3.10.2.v20150203-1939/org.eclipse.osgi-3.10.2.v20150203-1939.jar > > > > is in the classpath, because the stock eclipse features have it as a > > dependency, and it has a META-INF file that calls for Equinox! > > > > > > > > On Fri, Feb 26, 2016 at 9:09 AM, Benson Margulies <[email protected]> > wrote: > >> Now I am really stumped. > >> > >> karaf.framework=felix > >> > >> equinox is _not_ in the classpath any longer. > >> > >> when I run the assembly from command line, it runs felix. > >> > >> But when I launch embedded, it's equinox. > >> > >> I'm continuing to poke. > >> > >> > >> On Fri, Feb 26, 2016 at 8:15 AM, Benson Margulies <[email protected]> > wrote: > >>> Achim, I don't know why I have equinox. I have karaf.framework=felix > >>> in config.properties, since I don't customize that file. > >>> > >>> I might have equinox in my Maven test classpath, should pax-exam be > >>> respecting that? I can probably get rid of it. > >>> > >>> > >>> On Fri, Feb 26, 2016 at 7:24 AM, Achim Nierbeck < > [email protected]> wrote: > >>>> Hi, > >>>> > >>>> I've seen you are using equinox as container. Did you check if this > also > >>>> happens if you use a felix container? > >>>> > >>>> regards, Achim > >>>> > >>>> > >>>> 2016-02-26 3:51 GMT+01:00 Benson Margulies <[email protected]>: > >>>>> > >>>>> Here is a thread dump of all things stuck when trying to use pax-exam > >>>>> 4.8.0 with runEmbedded(true), and the thing eventually times out. > >>>>> > >>>>> https://gist.github.com/benson-basis/dafe72561c5ee6d1c1d6 > >>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> > >>>> 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 > >>>> >
