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

サーバーの起動時に、バンドル com.liferay.portal.osgi.web.wab.generator.impl に対して「アクティベート メソッドが例外 java.nio.file.NoSuchFileException をスローしました:」が報告される

written-by

Emma Liu

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

問題

  • サーバーの起動時に、バンドル com.liferay.portal.osgi.web.wab.generator.impl に対して「アクティブ化メソッドが例外
    java.nio.file.NoSuchFileException: + {path}をスローしました」が報告されました。
  • 2021-12-23 05:46:17.220 ERROR [main][WabGenerator:93] bundle com.liferay.portal.osgi.web.wab.generator.impl:3.0.12 (36)[com.liferay.portal.osgi.web.wab.generator.internal.WabGenerator(2)] : The activate method has thrown an exception 
    java.nio.file.NoSuchFileException: /home/emma/Liferay/bundles/dxp/liferay-dxp-7.3.10.1-sp1/,/home/emma/Liferay/bundles/dxp/liferay-dxp-7.3.10.1-sp1/osgi/war
    	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    	at sun.nio.fs.UnixPath.toRealPath(UnixPath.java:837)
    	at com.liferay.portal.osgi.web.wab.generator.internal.WabGenerator.getRequiredForStartupContextPaths(WabGenerator.java:178)
    	at com.liferay.portal.osgi.web.wab.generator.internal.WabGenerator.activate(WabGenerator.java:99)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
  • その他の症状は次のとおりです。
    • このエラーのため、すべての war ファイル (テーマを含む) をページに適用できません。
    • サーバーの起動時に、名前が の追加フォルダーが、定義された liferay.home フォルダーに自動的に生成されます。

Selection_081.png

Environment

  • Liferay DXP 7.3

解決策

  • この問題は、*.properties ファイルで複数の liferay.home が定義されているために発生します。 このエラーを解決するには、次のファイル内の liferay.home プロパティを再確認し、 1のみであることを確認してください。 liferay.home プロパティ ファイルで定義されています。
    • portal-bundle.properties
    • portal-ext.properties
    • portal-setup-wizard.properties

追加情報

  • grep -F -r -c 'liferay.home' *.properties このコマンドは、プロパティ ファイルで定義されている liferay.home の数を見つけるのに役立ちます。

did-this-article-resolve-your-issue

legacy-knowledge-base