Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Liferay Portlet未注册(内存泄漏?)_Liferay_Portlet_Liferay Ide - Fatal编程技术网

Liferay Portlet未注册(内存泄漏?)

Liferay Portlet未注册(内存泄漏?),liferay,portlet,liferay-ide,Liferay,Portlet,Liferay Ide,我在Eclipse中使用Lifeay IDE创建了具有插件Portlet类型和JSF 2.x.x Portlet框架的新项目Liferay项目。我没有做任何更改,而是将项目添加到Liferay v6.1 CE服务器Tomcat 7中,并启动了该服务器 不幸的是,我得到了这个错误,portlet被取消注册 。。。09:05:08828信息[ContainerBackgroundProcessor[StandardEngine[Catalina]][PluginPackageUtil:1033]正在

我在Eclipse中使用Lifeay IDE创建了具有插件Portlet类型和JSF 2.x.x Portlet框架的新项目Liferay项目。我没有做任何更改,而是将项目添加到Liferay v6.1 CE服务器Tomcat 7中,并启动了该服务器

不幸的是,我得到了这个错误,portlet被取消注册

。。。09:05:08828信息[ContainerBackgroundProcessor[StandardEngine[Catalina]][PluginPackageUtil:1033]正在阅读MyFaces portlet的插件包 2013-08-02 09:05:09 org.apache.catalina.core.ApplicationContext日志 信息:关闭Spring根WebApplicationContext 09:05:09037信息[ContainerBackgroundProcessor[StandardEngine[Catalina]][HookHotDeployListener:813]MyFaces portlet的钩子已注销 2013-08-02 09:05:09 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重:web应用程序[/MyFaces portlet]似乎已启动名为[MultiThreadedHttpConnectionManager cleanup]的线程,但未能停止该线程。这很可能会造成内存泄漏。 09:05:26970信息[com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1421]检查可用更新 09:05:26971信息[com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1465]在1毫秒内完成了可用更新的检查


怎么了?

您必须使用ANT脚本构建项目。创建portlet时,将创建build.xml。看起来像

<?xml version="1.0"?>
<!DOCTYPE project>
<project name="abc-portlet" basedir="." default="deploy">
     <import file="../build-common-portlet.xml" />
</project>
您必须使用ant构建此文件。成功构建后,将在SDKPlugins\dist文件夹上创建portlet war。并自动部署到服务器。这是热部署,您不需要添加任何内容。每次部署新版本时,您都会收到消息“abcportlet”已注销,然后部署新版本

因此,如果你收到解除部署的消息,不要担心。它将被部署


关于消息,portlet被取消注册了,它通常在portlet未成功部署时出现。

您是如何将项目添加到服务器的?您构建了ant脚本还是什么?我通过新服务器将Tomcat与Eclipse集成在一起。这里描述的是同一笔交易,你找到了这个问题的解决方案吗?我认为他的错误与此无关,因为他使用了Liferay IDE,该IDE将Liferay SDK与Ant一起使用。错误是关于内存泄漏问题,这在这里是不可理解的。