Liferay (ExceptionInInitializerError)将上下文已销毁事件发送到类PluginContextListener的侦听器实例时发生异常

Liferay (ExceptionInInitializerError)将上下文已销毁事件发送到类PluginContextListener的侦听器实例时发生异常,liferay,liferay-6,Liferay,Liferay 6,我已经创建了一个portlet,我正在尝试进行部署,但是在进行部署时,我遇到了以下错误: 注意:我使用的是liferay-plugins-sdk-6.2-ce-ga6 请帮帮我 SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.kernel.servlet.PluginContextListener java.lang.ExceptionInInit

我已经创建了一个portlet,我正在尝试进行部署,但是在进行部署时,我遇到了以下错误:

注意:我使用的是liferay-plugins-sdk-6.2-ce-ga6

请帮帮我

SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.kernel.servlet.PluginContextListener
java.lang.ExceptionInInitializerError
at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.initDependentServletContextNames(HotDeployEvent.java:97)
at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.<init>(HotDeployEvent.java:53)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireUndeployEvent(PluginContextListener.java:170)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalDestroy(PluginContextListener.java:132)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalDestroy(BasePortalLifecycle.java:31)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextDestroyed(PluginContextListener.java:97)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1028)
at org.apache.catalina.startup.HostConfig.deleteRedeployResources(HostConfig.java:1299)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1439)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException
at com.liferay.portal.kernel.util.PropsUtil.get(PropsUtil.java:32)
at com.liferay.portal.kernel.deploy.hot.DependencyManagementThreadLocal.<clinit>(DependencyManagementThreadLocal.java:40)
... 21 more

May 27, 2016 2:21:54 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/Sample-portlet] created a ThreadLocal with key of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMapThreadLocal] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMapThreadLocal@32b11adf]) and a value of type [com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMap] (value [com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMap@95b4079]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
严重:将上下文已销毁事件发送到类com.liferay.portal.kernel.servlet.pluginTextListener的侦听器实例时发生异常
java.lang.ExceptionInInitializeError
位于com.liferay.portal.kernel.deploy.hot.HotDeployEvent.initDependentServletContextNames(HotDeployEvent.java:97)
位于com.liferay.portal.kernel.deploy.hot.HotDeployEvent。(HotDeployEvent.java:53)
位于com.liferay.portal.kernel.servlet.pluginTextListener.fireUndeployEvent(pluginTextListener.java:170)
位于com.liferay.portal.kernel.servlet.pluginTextListener.doPortalDestroy(pluginTextListener.java:132)
位于com.liferay.portal.kernel.util.BasePortalLifecycle.portalDestroy(BasePortalLifecycle.java:31)
位于com.liferay.portal.kernel.servlet.pluginTextListener.contextDestroyed(pluginTextListener.java:97)
位于org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980)
位于org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626)
位于org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
位于org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1028)
位于org.apache.catalina.startup.HostConfig.deleteRedeployResources(HostConfig.java:1299)
位于org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1229)
位于org.apache.catalina.startup.HostConfig.check(HostConfig.java:1439)
位于org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
在org.apache.catalina.util.LifecycleSupport.FireLifecycleSupport(LifecycleSupport.java:119)上
位于org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
位于org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
位于org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
位于org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
位于org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
运行(Thread.java:744)
原因:java.lang.NullPointerException
位于com.liferay.portal.kernel.util.PropsUtil.get(PropsUtil.java:32)
位于com.liferay.portal.kernel.deploy.hot.DependencyManagementThreadLocal。(DependencyManagementThreadLocal.java:40)
... 还有21个
2016年5月27日下午2:21:54 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重:web应用程序[/Sample portlet]创建了一个ThreadLocal,其密钥类型为[com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocal](值为[com.liferay.portal.kernel.util.CentralizedThreadLocal])$ThreadLocalMapThreadLocal@32b11adf])和类型的值[com.liferay.portal.kernel.util.CentralizedThreadLocal.ThreadLocalMap](值[com.liferay.portal.kernel.util.CentralizedThreadLocal$ThreadLocalMap@95b4079])但在web应用程序停止时无法删除它。将随着时间的推移更新线程,以尝试避免可能的内存泄漏。

在谷歌搜索了一段时间后,我发现当您复制了
门户服务.jar时,有时会出现这种类型的错误,所以请确保pom中的密度设置为
,前提是

这是首次部署还是重新部署?(日志的最后一行表明它处于重新部署状态,之前部署的版本在下一个版本到来之前关闭)查看一些代码也可能会有所帮助-请提供一个yeah-its重新部署,我刚刚创建了portlet,没有编写任何东西谢谢你KLajdPaja,我不知道确切的问题是什么,但我的问题已经解决了,以下是我执行的步骤1)从tomcat/lib-ext文件夹中删除所有jar文件。(2)。再次清除并重新部署门户(3)重新启动服务器,现在工作正常