Liferay的marketplace-portlet在版本6.2中没有正确部署?

时间:2014-01-14 16:14:44

标签: liferay liferay-hook

我为Liferay 6.1创建了一个没有错误的钩子,现在我正在尝试为版本6.1做同样的事情

当我在捆绑版本中部署钩子时,我得到了下一个日志:

16:02:36,799 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookAutoDeployListener:56] Hook for D:\liferay-portal-6.2.0-ce-ga1\deploy\encrypted-autologin-hook-1.0.war copied successfully. Deployment will start in a few seconds.
16:02:43,155 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployEvent:130] Plugin encrypted-autologin-hook requires marketplace-portlet
16:02:43,156 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HookHotDeployListener:944] Hook for encrypted-autologin-hook was unregistered
16:02:43,157 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1016] Reading plugin package for encrypted-autologin-hook
16:02:44,285 INFO  [localhost-startStop-4][HotDeployEvent:130] Plugin encrypted-autologin-hook requires marketplace-portlet
16:02:44,286 INFO  [localhost-startStop-4][HotDeployImpl:195] Deploying encrypted-autologin-hook from queue
16:02:44,287 INFO  [localhost-startStop-4][PluginPackageUtil:1016] Reading plugin package for encrypted-autologin-hook
16:02:44,490 INFO  [localhost-startStop-4][HookHotDeployListener:687] Registering hook for encrypted-autologin-hook
16:02:44,494 INFO  [localhost-startStop-4][HookHotDeployListener:814] Hook for encrypted-autologin-hook is available for use.

正如我们所看到的,消息:Plugin encrypted-autologin-hook requires marketplace-portlet 出现。 documentation解释说这意味着我们需要安装marketplace-portlet(已安装)。

我已经按照文档步骤,我已经下载了插件SDK(我的Liferay的相同版本),我编译了它并且我已经获得了一个WAR文件。我也遵循'portal-compat-hook'的相同步骤才确定。最后我安装了两个war包。

但是,当我重新部署我的钩子时,会出现相同的日志行。市场-portlet中有任何已知问题?

似乎我的钩子没有工作(没有观察到任何动作)并且它也没有记录任何内容,尽管遵循Liferay logging guide。然后我假设钩子没有执行,显示的唯一错误是缺少marketplace-portlet。那么为什么会出现这个错误,尽管这个portlet已经安装在捆绑包中,如果再次安装它也是如此?

1 个答案:

答案 0 :(得分:2)

@Mark是正确的。可以安全地忽略此消息。错误发生在其他地方。现在它正常工作(并且仍然显示消息)。