Issue
- When upgrading to LCS client 6.0.0, the following error is reported:
12-Sep-2019 06:06:57.072 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: com.liferay.portal.lpkg.deployer.LPKGVerifyException: LPKG validation failed with {[missing requirement com.liferay.lcs.api; version=12.0.7; type=osgi.bundle [caused by: Unable to resolve com.liferay.lcs.api version=12.0.7: missing requirement com.fasterxml.jackson.databind; version=[2.9.0,3.0.0)]], [missing requirement com.liferay.lcs.client.api; version=5.2.1; type=osgi.bundle [caused by: Unable to resolve com.liferay.lcs.client.api version=5.2.1: missing requirement com.liferay.lcs.messaging; version=[11.1.0,12.0.0) [caused by: Unable to resolve com.liferay.lcs.messaging version=12.1.2: missing requirement com.fasterxml.jackson.annotation; version=[2.9.0,3.0.0)]]], [missing requirement com.liferay.lcs.client.impl; version=1.0.21; type=osgi.bundle [caused by: Unable to resolve com.liferay.lcs.client.impl version=1.0.21: missing requirement com.fasterxml.jackson.databind; version=[2.9.0,3.0.0)]], [missing requirement com.liferay.lcs.client.web; version=1.0.17; type=osgi.bundle [caused by: Unable to resolve com.liferay.lcs.client.web version=1.0.17: missing requirement com.liferay.lcs.messaging; version=[11.1.0,12.0.0) [caused by: Unable to resolve com.liferay.lcs.messaging version=12.1.2: missing requirement com.fasterxml.jackson.annotation; version=[2.9.0,3.0.0)]]], [missing requirement com.liferay.lcs.messaging; version=12.1.2; type=osgi.bundle [caused by: Unable to resolve com.liferay.lcs.messaging version=12.1.2: missing requirement com.fasterxml.jackson.annotation; version=[2.9.0,3.0.0)]]}
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)
.....
12-Sep-2019 06:06:57.075 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
12-Sep-2019 06:06:57.098 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
2019-09-12 06:06:57.111 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:139)
...
2019-09-12 06:06:57.113 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:53)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:146)
...
2019-09-12 06:06:57.113 ERROR [localhost-startStop-1][PortalBeanLocatorUtil:109] BeanLocator is null
12-Sep-2019 06:06:57.113 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator is not set
at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:74)
at com.liferay.portal.spring.context.PortalContextLoaderListener.closeDataSource(PortalContextLoaderListener.java:394)
...
12-Sep-2019 06:06:57.116 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [HSQLDB Timer @5c11cec9] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.hsqldb.lib.HsqlTimer$TaskQueue.park(HsqlTimer.java:882)
org.hsqldb.lib.HsqlTimer.nextTask(HsqlTimer.java:528)
org.hsqldb.lib.HsqlTimer$TaskRunner.run(HsqlTimer.java:610)
java.lang.Thread.run(Thread.java:748)
Environment
- Liferay DXP 7.0
- Fix Pack 84 or below
Resolution
- To resolve the issue, please install the DXP 7.0 Fix Pack 85 or above.