【问题标题】:Generated portlet with xmlportletfactory and Liferay throws BeanLocator is null error使用 xmlportletfactory 和 Liferay 生成的 portlet 抛出 BeanLocator is null 错误
【发布时间】:2013-12-01 20:34:22
【问题描述】:

我现在为以下问题苦苦挣扎了很长时间:我使用 xmlportletfactory 生成了一个非常基本(或复杂)的示例 portlet。将其部署到 Liferay,将其添加到页面并尝试使用它。我无法添加新条目(视图中出现错误消息)并且服务器日志 sais:

ERROR [http-bio-8080-exec-1][PortletBeanLocatorUtil:42] BeanLocator is null for servlet context coursesExample

环境是:

  • liferay-portal-6.1.2-ce-ga3
  • liferay-plugins-sdk-6.1.1
  • XMLPortletFactory_6.x-v2.2
  • Tomcat/7.0.40
  • Postgres 9.2
  • Java 1.6.0_45

我搜索了整个网络,在 liferay 论坛上发现了很多类似的问题,但没有任何帮助。我也将它发布到 xmlportletfactory 论坛http://www.xmlportletfactory.org/forum/-/message_boards/message/145826,但仍然没有答案。

我能做什么?

【问题讨论】:

  • 您是否尝试过使用 Liferay 6.1.1 或 6.1.0?我有一个在 6.1.1 上运行的 xmlpf 的修改版本,我可以在 github 上分享它。
  • 谢谢。 xmlpf 的人将在接下来的几周内研究这个问题。

标签: liferay liferay-6 portal


【解决方案1】:

就我而言,出于某种原因,我更改了项目的名称,并且开始遇到相同的“BeanLocator 对于 servlet 上下文为空...”问题。 几天后,我将我的 eclipse 项目重命名为我最初使用的名称,一切恢复正常。

这是否也与您的项目名称有关?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-09
    • 2015-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多