legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay DXP 7.1 に JavaScript ウィジェットをデプロイするときに「未解決の要件 osgi.extender=liferay.frontend.js.portlet」を取得する

written-by

Liferay Support

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

問題

  • 開発者は、 JavaScript ツールを使用した JavaScript ウィジェットの作成とバンドルに従って JavaScript ウィジェットを作成します。
  • 展開時に以下のエラーが出力されます。
    INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing my-project-1.0.0.jar
    ERROR [Framework Event Dispatcher: Equinox Container: 322f7d10-7b23-403f-95e8-ac8e86ebba89][Framework:93] FrameworkEvent ERROR
    java.lang.RuntimeException: org.osgi.framework.InvalidSyntaxException: Filter ended abruptly: (&(osgi.extender
    at org.apache.aries.spifly.ConsumerBundleTrackerCustomizer.addingBundle(ConsumerBundleTrackerCustomizer.java:39)
    [...]
    Caused by: org.osgi.framework.InvalidSyntaxException: Filter ended abruptly: (&(osgi.extender
    at org.eclipse.osgi.internal.framework.FilterImpl$Parser.parse(FilterImpl.java:1486)
    [...]
    Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 16 out of bounds for length 16
    at org.eclipse.osgi.internal.framework.FilterImpl$Parser.parse_attr(FilterImpl.java:1660)
    [...]
    ERROR [fileinstall-/home/liferay-dxp-7.1.10-ga1/osgi/modules][LogService:93] Error while starting bundle: file:/home/alfonso/Desktop/local_bundles/AHTIVNK-32373/liferay-dxp-7.1.10-ga1/osgi/modules/my-project-1.0.0.jar
    org.osgi.framework.BundleException: Could not resolve module: my-project [994]_ Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=liferay.frontend.js.portlet)(version>=1.1.0))"_ [Sanitized]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    [...]

Environment

  • Liferay DXP 7.1

解決策

  1. Liferay JS Portlet Extender アプリをダウンロードしてデプロイする
  2. サーバーを再起動します
  3. JavaScript ウィジェットのデプロイが成功するはずです
did-this-article-resolve-your-issue

legacy-knowledge-base