Liferay fails to start up after installing fix pack

Issue

After installing a fix pack, sometimes the environment may not start back up and will encounter the following error:

10-Nov-2021 18:14:07.441 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
java.lang.RuntimeException: java.lang.NullPointerException
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:271)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.liferay.portal.bootstrap.ModuleFrameworkImpl._isFragmentBundle(ModuleFrameworkImpl.java:1086)
at com.liferay.portal.bootstrap.ModuleFrameworkImpl._setUpInitialBundles(ModuleFrameworkImpl.java:1413)
at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:409)
at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:266)
... 13 more

This error is similar to the one mentioned in this article, which recommends removing the OSGi, Liferay, and Application Server temporary directories to resolve the error. However, sometimes, the error will persist and Liferay will still not start up.

 

Environment

  • Liferay DXP 7.0

 

Resolution

  • The errors listed are mostly related to classloading or module-loading issues that are related to OSGi. Sometimes, the Liferay OSGi/core bundle can be corrupted, so these errors may be resolved by replacing the OSGi/core bundle with the files from a clean bundle.

 

Additional Information

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