I am trying with bndtools but I am being slaughtered without mercy.
I have like 30 bundles or so. I choose one of the main bundles and
followed these instructions
(http://bndtools.org/tutorial.html#run-an-osgi-framework), he created a
*.bndrun* file in my bundle's root directory with the following:
/-runfw: org.apache.felix.framework;version='[4,5)'//
//-runee: JavaSE-1.7//
//-runsystemcapabilities: ${native_capability}//
//
//-resolve.effective: active;skip:="osgi.service"/
However this happens when I try to edit the file in Eclipse:
http://i.imgur.com/FYKDnvE.png
However this looks a bit far from what I want. It seems this .bndrun
will import a felix.jar from somewhere else, but in fact I want to use
the one I have in C:\code\osgi_proj\deploy\bin\felix.jar because I
already have there all the bundles I need and the configurations (unless
for some debugging limitation eclipse needs to directly inject the bundles).
Can this be done, or I will need to deeply modify my project in order
for this to work?
Thanks!
On 12/09/2015 22:01, Christian Schneider wrote:
If you only need plain felix then eclipse + bndtools might help.
I just tried the new 3.0.0 version and was able to setup as small
project in quite short time.
It features very nice debug integration.
Apart from this remote debugging always works but is less convenient.
Christian
Am 12.09.2015 um 21:31 schrieb Pedro Domingues:
Hi,
I really need to debug my code by the use of breakpoints, however
this seems a complex undertaking with an OSGi container.
I have Eclipse and Felix (both the latest). My project is a raw OSGi
project, I am not using PDE, just maven bundle plugin to generate the
bundles and then copy them to the /bundle folder in felix, then I
perform java -jar bin/felix.jar and the project runs. So no fuss here.
However I cannot debug the application that way. I've tried to read
the docs
(http://felix.apache.org/documentation/development/integrating-felix-with-eclipse.html)
but they are outdated/broken and cant make them work...
How can I debug this? Will I have to avoid using OSGi just because
debug is not supported...? :(
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]