Liferay:看不到已部署的 portlet
我为 Liferay 门户开发了一个示例 JSF portlet。 在我部署它之后(控制台中没有错误,并且 liferay/deploy 目录中的 .war 文件被删除到 liferay/tomcat/webapps 并被分解)。我尝试通过 Liferay 的管理控制台将此 portlet 添加到新页面。问题是 - 我找不到我的 portlet。 我尝试从 Liferay 的站点部署一个示例 portlet,一切正常。所有 .xml 文件与示例中的完全相同。
有人可以帮助我吗?
更新:我在 tomcat 输出中发现listenerStart 错误。会是什么?
I develop a sample JSF portlet for the Liferay portal.
After I had deployed it (no errors in the console and the .war file from the liferay/deploy directory is removed to the liferay/tomcat/webapps and is exploded). I tried to add this portlet to a new page via Liferay's admin console. The problem is - I can't find my portlet.
I've tried to deploy an example portlet from Liferay's site and everything was ok. All the .xml files are completely the same as in the example.
Could somebody help me?
UPDATE: I've found listenerStart error in tomcat output. What can it be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的问题的解决方案位于 portlet.xml 文件中。
有几个
标签。对于 JSF portlet (myfaces),其中之一应如下所示:The solution for my problem lays in the portlet.xml file.
There are several
<init-param/>
tags. One of them should look like the following for the JSF portlet (myfaces):您确定已向 portlet 添加了正确的权限吗?您可以尝试在使用管理员帐户时在菜单中访问它。
该 portlet 是否在部署时出现在管理控制台中?
另外:日志告诉你什么?部署是否正确或者是否发生任何错误?
Are you sure that you added the correct permissions to the portlet? You could either try to access it in the menu when using an adminstator account.
Does the portlet appear in the administration console as deployed?
Also: what do the logs tell you? Is it deployed properly or did any error occur?