legacy-knowledge-base
公開されました Sep. 10, 2025

osgi/state/から特定のOSGiモジュールディレクトリだけをクリアする方法

written-by

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • osgi/state/ で、ディレクトリ全体をクリアするのではなく、特定のモジュールのデータのみをクリアすることは可能でしょうか。

Environment

  • dxp 7.0, 7.1, 7.2, 7.3, 7.4

解決策

  • モジュール com.exampleのデータを消去したい場合を考えてみましょう。
  • Gogo Shellを使用して、OSGiバンドルIDを検索します:
    g! lb -s com.example
    START LEVEL 20
    ID|State |Level|Symbolic name
    1197|Active | 15|com.example (3.0.59)|3.0.59
  • バンドルID(上記の例では1197)を使用して、バンドルディレクトリを検索します。 デフォルトでは $LIFERAY_HOME/osgi/state/org.eclipse.osgi/1197.
    • それ以外の場合は、 b <bundle-id> コマンドでパスを検索することができます:
      g! b 1197 | grep state
      Id=1197, Status=ACTIVE Data Root=/opt/liferay/osgi/state/org.eclipse.osgi/1197/data
  • 最後に、ディレクトリをクリアする前に、 、アプリケーションサーバーを停止することを忘れないでください

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base