Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Testing an OSGI/JDT/Eclipse plugin with Pax-exam(Frameworks conflicts)
Testing an OSGI/JDT/Eclipse plugin with Pax-exam [message #1706252] Tue, 25 August 2015 10:24
Rodolfo AP is currently offline Rodolfo APFriend
Messages: 7
Registered: April 2015
Junior Member
Hi, all. Hope this is the right forum. If not, sorry for the noise, please redirect me.

My project is a plugin that uses JDT, built with maven, runs from an OSGI JDT creates an eclipse workspace to compile java classes. Works fine so I want to write tests for my classes.

Since this runs " OSGI Framework", I'm using pax-exam to write my tests. Most of my classes are eclipse workspace-dependent.

But as soon as I start adding the dependencies for the test, eclipse, soon org.eclipse.osgi is required. After adding it I get

java.lang.ClassCastException: org.eclipse.osgi.framework.internal.core.SystemBundleActivator cannot be cast to org.osgi.framework.BundleActivator

I saw an stackoverflow post saying that it is not possible to run org.eclipse.osgi functionalities (meaning equinox) using Felix.

So, where's my problem? am I having a conceptual error? Can I test eclipse workspace objects within felix? Which other testing options do I have?

Thanks in advance.

Previous Topic:ClassNotFoundException for embedded activator when starting in eclipse target platform
Goto Forum:

Current Time: Sun Sep 25 00:07:00 GMT 2022

Powered by FUDForum. Page generated in 0.01405 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top