To find out why your bundles fail to resolve, add the following to your Pax Exam configuration

        equinox(),
        workingDirectory("/tmp/pax"),
        keepCaches()

When your test terminates, you will find the bundles provisioned by Pax Exam and the generated config.ini in the "equinox" and "bundles" subdirectories of /tmp/pax

Running Equinox manually via

java -jar path/to/org.eclipse.osgi_XXX.jar -configuration <configDir> -console

(sorry, I don't remember the exact names off the top of my head...)

you can then use

diag <bundle id>

from the Equinox console to find out what dependencies the given bundle is missing.

Or you can set a breakpoint in your Pax Exam test and connect to the console of the running Equinox framework via

telnet localhost 6666

I don't know if Pax Exam activates the console by default - if not, then have a look at the Equinox documentation (Eclipse Help | Eclipse Runtime Options) to find the system property you need to set.

HTH,
Harald




Am 19.07.2011 20:16, schrieb Rodolfo Barbeiro:
But thebundlesI needto simulatemy environmentdoes notbecome
active.Almost everybody getsthe status"Installed".

Is this normal?


_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to