【问题标题】:Errai and portlet deploymentErrai 和 portlet 部署
【发布时间】:2013-07-25 16:00:32
【问题描述】:

这是我的第一个问题,我没有在网上找到任何答案。问题是,在门户环境中使用 erai 时,您会在服务器端遇到如下异常:

/out.50694-4048.erraiBus generates exception: null

在客户端是这样的:

GET http://myserver:8080/user/admin/in.20679-27603.erraiBus?z=1 404 (Not Found)
GET http://myserver:8080/user/admin/in.20679-27603.erraiBus?z=2 404 (Not Found)
GET http://myserver:8080/user/admin/in.20679-27603.erraiBus?z=3 404 (Not Found)

原因是,erai 调用的 url 与 gwt 模块相关,而不是 web 上下文名称。解决方案如下。 其他论坛也有同样的问题:

http://www.liferay.com/de/community/forums/-/message_boards/message/12383627?_19_threadView=flat

https://community.jboss.org/thread/177590?start=0&tstart=0

【问题讨论】:

    标签: gwt liferay portlet portal errai


    【解决方案1】:

    您需要在 html 主机页面中添加一个脚本,如 erai 文档中的 Client Configuration 中所述。

    <script type="text/javascript">
      erraiBusApplicationRoot = "/MyWebContextName";
    </script>
    

    这将解决所有错误通信问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-22
      • 1970-01-01
      • 2014-05-08
      • 1970-01-01
      • 2011-07-12
      • 1970-01-01
      • 1970-01-01
      • 2014-02-13
      相关资源
      最近更新 更多