"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

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.

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0