Introduction

Jetty-OSGi is a packaging of jetty where jetty is run as an OSGi bundle. It supports the deployment of traditional J2EE web-applications and also web-bundles where the web application is contained in a bundle.

This tutorial introduces the development and testing of web-bundles in PDE.

Configure a Target Platform and run a simple Test Unit with PDE

We will provision a new Target Platform and develop a simple bundle that executes a Testunit.
A Target Platform defines the OSGi environment in which your bundles are compiled and debugged.

Target Platform with JUnit Support

Launch Eclipse-SDK-3.6.
Define a new Target Platform "EclipseRT-Tutorial"
Open the Preferences and choose the node "Plugins-Development/Target Platform"
Click on "Add..." and choose the option "Nothing:" start with an empty Target Platform"

Name the Target Platform "EclipseRT Tutorial"

Click on Next and choose "Add..." then "Select Software Site"

Select the "Helios" download site as the source of the features to install in the Target Platform

Look for the category "Eclipse RT Target Platform" and select the PDE JUnit Support feature. Click on Finish.