使用开发者工具对 OSGi 应用程序进行故障诊断

可以使用 WebSphere Developer Tools 配置 osgiAppConsole-1.0 功能部件,然后使用它来确定和分析与 OSGi 应用程序相关的问题。

开始之前

  • 安装 WebSphere Developer Tools for Eclipse 和 WebSphere Application Server Liberty。可以使用下载的安装文件来安装这些工具。有关安装 WebSphere Developer Tools 和 Liberty 的更多信息,请参阅安装 Liberty 开发者工具和(可选)Liberty
  • 将 OSGi 应用程序部署到正在运行的 Liberty 服务器。
  • osgiAppConsole-1.0 功能部件作为所下载压缩文件的一部分提供。如果该功能部件尚未安装,请使用以下命令从 Liberty Repository 安装该功能部件:
    bin\installUtility install osgiAppConsole-1.0

过程

  1. server.xml 文件中配置 osgiAppConsole-1.0 功能部件。
    <featureManager>
      <feature>osgiAppConsole-1.0</feature>
    </featureManager>
  2. 添加安全性配置。

    以下示例显示样本安全性配置,其中 admin 角色使用基本权限和 HTTPS 安全性。

    <httpEndpoint httpPort=”9080″ httpsPort=”9443″ id=”defaultHttpEndpoint”/>
    <keyStore id=”defaultKeyStore” password=”Liberty”/>
    <quickStartSecurity userName=”admin” userPassword=”password”/>
  3. 通过完成以下其中一项任务,启动“OSGi 应用程序控制台”或“OSGi 共享捆绑软件控制台”。
    • 启动“OSGi 应用程序控制台”:
      1. 在“服务器”视图中,右键单击 OSGi 模块。
      2. 选择启动 OSGi 应用程序控制台

      该工具将打开浏览器,其中显示“OSGi 应用程序控制台”页面。

    • 启动“OSGi 共享捆绑软件控制台”:
      1. 右键单击服务器。
      2. 选择实用程序 > 启动 OSGi 共享捆绑软件控制台

      该工具将打开浏览器,其中显示“OSGi 共享捆绑软件控制台”页面。


用于指示主题类型的图标 任务主题



时间戳记图标 最近一次更新时间: Tuesday, 6 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=twlp_osgi_troubleshoot_tools
文件名:twlp_osgi_troubleshoot_tools.html