OK, I can help you with Karaf. I use the second sample I sent you before precisely to launch Karaf and then run tests that talk to it. The alternative is the 'exam-maven-plugin'.
However, Eclipse won't ever debug inside of Karaf 'by magic'. In your pax-exam config, you add in something like: when(karafDebug).useOptions(debugConfiguration()), and then Karaf will start up and wait for you to attach Eclipse via the usual remote debugging mechanism. There is a concept of running karaf 'embedded', but I've found it to be hard to use successfully. On Tue, Sep 27, 2016 at 2:59 PM, Steinar Bang <[email protected]> wrote: >>>>>> Benson Margulies <[email protected]>: > >> Surely you want something that also works in your commands-line/CI >> system, not just eclipse? > > I plan to use karaf to actually run the webapp. > > But for now, I run the bundle(s) in two places; > 1. In a PaxExam JUnit test > https://github.com/steinarb/ukelonn/tree/master/ukelonn.tests > 2. In a felix instance launched by the maven-pax-plugin (kind of > abandoned but still works) > https://github.com/steinarb/ukelonn/tree/master/ukelonn.gogoshell > (launched by "mvn pax:provision" in that directory) > > But right now I have no way of debugging the actual running webapp. > > I can debug the PaxExam tests, but not the actual webapp. > > The PaxExam tests are trivial right now, they are mostly just proving > that the bundles start and find all the required OSGi services. > > I tried creating a test that actually used the web app, patterned on the > tests in PaxExam, using pax-web-itest, but I wasn't able to get it > working so I've @Ignored it (this test is on a currently unpushed > branch). > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
