Deploying OSGi application projects
Before you begin
- Create an OSGi application.
- Install WebSphere® Application
Server. Tip: You can deploy OSGi applications on WebSphere Application Server Version 7, Version 8.0, and Version 8.5.Learn more about installing WebSphere Application Server Version 7.0:
- Open the IBM® Installation Manager.
- Click Install. The Install Packages page opens.
- In the package list, select IBM WebSphere Application Server Version 7.0 Test Environment, then click Next.
- Read the license agreements. Accept the license agreements then click Next.
- Follow the instructions in the Installation Manager to install WebSphere Application Server Version 7.0.
- In the Features list, ensure that you select OSGi Applications under IBM WebSphere Application Server Version 7.0 Feature Pack for OSGi Applications and Java Persistence API 2.0.
Learn more about installing WebSphere Application Server Version 8.0:- Open the IBM Installation Manager.
- Click Install. The Install Packages page opens.
- In the package list, select Application Server Version 8.0.0.0, then click Next.
- Read the license agreements. Accept the license agreements then click Next.
- Follow the instructions in the Installation Manager to install WebSphere Application Server Version 8.0.
Learn more about installing WebSphere Application Server Version 8.5:- Open the IBM Installation Manager.
- Click Install. The Install Packages page opens.
- In the package list, select Application Server Version 8.5.0.0, then click Next.
- Read the license agreements. Accept the license agreements then click Next.
- Follow the instructions in the Installation Manager to install WebSphere Application Server Version 8.5.
Important: If you use a different test environment, the steps to deploy your application differ from the steps that are provided in this topic.
About this task
Restriction: If you updated the container path of
the target definition on the Server Preferences the Target Platform
Preference is overridden. For more information, see Bug 300861.
Adding your OSGi application to a server instance
Procedure
- In the Servers view (Add and Remove. The Add and Remove dialog opens. ), right-click your server instance and select
- In the list of Available resources, select your OSGi application project and then click Add to add it to the list of Configured resources.
- Click Finish.
Results

When you add your OSGi application project to the server, the server checks any package dependencies. If your OSGi application has package dependencies outside of your application project, the dependencies are resolved against any configured bundle repositories. The application is started after all bundle dependencies are verified.
Running your application on the server
Procedure
In the Servers view (Start. Your OSGi application is started after the publish
completes. ), right-click your server instance and then select