【问题标题】:SEVERE: listenerStart and memory leak ERROR严重:listenerStart 和内存泄漏错误
【发布时间】:2013-10-30 23:33:46
【问题描述】:

我使用 apache myfaces 2.1.6 和 tomcat 7。当我部署我的 portlet 时,我收到 listenerStart 错误。

SEVERE: Error listenerStart
22 2013 10:20:57 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/myPortlet] startup failed due to previous errors
10:20:57,590 INFO  [PluginPackageUtil:1099] Reading plugin package for rigensis-web-cust-application-regular-payment
10:20:57,592 WARN  [PluginPackageUtil:1058] Plugin package on context rigensis-web-cust-application-regular-payment cannot be tracked because this WAR does not contain a liferay-plugin-package.xml file
10:20:57,595 INFO  [PortletHotDeployListener:549] Unregistering portlets for myPortlet
10:20:57,603 INFO  [PortletHotDeployListener:580] 1 portlet for myPortlet was unregistered
22 2013 10:20:57 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/myPortlet] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@5f734d]) and a value of type [java.util.WeakHashMap] (value [{class org.apache.camel.core.xml.CamelProxyFactoryDefinition=java.lang.ref.WeakReference@8ad0bb, class org.apache.camel.spring.CamelContextFactoryBean=java.lang.ref.WeakReference@18db6b4, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@d6081f, class java.util.ArrayList=java.lang.ref.WeakReference@1af402a}]) 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.
22 2013 10:20:57 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/myPortlet] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@9dc4d6]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1e5d582]) 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.

请帮助我。谢谢

【问题讨论】:

  • 删除临时工作文件夹并从 webapps 中删除此 portlet,然后部署 portlet 应该可以工作

标签: jsf liferay tomcat7


【解决方案1】:

你的意思是...because this WAR does not contain a liferay-plugin-package.xml file...

如果这是一个应该由 Liferay 管理的插件,如果它困扰您,您应该提供该文件。此外,您可以帮助 Liferay 的部署人员确定您正在部署的插件类型,方法是让其名称以 -portlet 结尾 - 例如。不要叫它myPortlet,而是叫它my-portlet

如果这不是您的问题:您只引用日志并寻求帮助 - 但不要提供任何关于实际问题的线索

【讨论】:

    猜你喜欢
    • 2011-08-05
    • 1970-01-01
    • 1970-01-01
    • 2013-04-14
    • 1970-01-01
    • 2011-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多