Troubleshooting OSGi applications using developer tools
We can configure the osgiAppConsole-1.0 feature with WebSphere Developer Tools and then use it to determine and analyze the OSGi applications-related issues.
- Install WebSphere Developer Tools for Eclipse and WebSphere Application Server Liberty. We can install the tools using downloaded installation files.
- Deploy an OSGi application to a running Liberty server.
- The osgiAppConsole-1.0 feature is available as part of the downloaded
compressed files. If the feature is not already installed, then install the feature from the Liberty Repository using the following command:
bin\installUtility install osgiAppConsole-1.0
- Configure the osgiAppConsole-1.0 feature in the server.xml file.
<featureManager> <feature>osgiAppConsole-1.0</feature> </featureManager>
- Add the security configurations.
The following example shows a sample security configuration with an admin role that uses basic authorization and HTTPS security.
<httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/> <keyStore id="defaultKeyStore" password="Liberty"/> <quickStartSecurity userName="admin" userPassword="password"/>
- Start the OSGi Application Console or the OSGi Shared Bundle
Console by completing one of the following tasks.
- Start the OSGi Application Console:
- In the Servers view, right-click the OSGi module.
- Select Launch OSGi Application Console.
The tools open a browser that displays the OSGi Application Console page.
- Start the OSGi Shared Bundle Console:
- Right-click the server.
- Select Utilities > Launch OSGi Shared Bundle Console.
The tools open a browser that displays the OSGi Shared Bundle Console page.
- Start the OSGi Application Console: