Legacy Knowledge Base
Published Sep. 10, 2025

"The activate method has thrown an exception java.nio.file.NoSuchFileException:" reported for bundle com.liferay.portal.osgi.web.wab.generator.impl when starting server

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • "The activate method has thrown an exception
    java.nio.file.NoSuchFileException: + {path}" reported for bundle com.liferay.portal.osgi.web.wab.generator.impl when starting server.
  • 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)
    
  • Some other symptoms are:
    • All the war files (including themes) can not be applied on the page due to this error.
    • An extra folder with , as its name is automatically generated in the defined liferay.home folder when starting the server.

Selection_081.png

Environment

  • Liferay DXP 7.3

Resolution

  • The issue is caused by multiple liferay.home defined in the *.properties file. To resolve this error, double-check the liferay.home property inside of the following files and make sure there is only one liferay.home defined in the properties file.
    • portal-bundle.properties
    • portal-ext.properties
    • portal-setup-wizard.properties

Additional Information

  • grep -F -r -c 'liferay.home' *.properties the command can help find how many liferay.home defined in the properties file.

 

Did this article resolve your issue ?

Legacy Knowledge Base