简体   繁体   English

Liferay 7无法添加或编辑页面,门户和站点

[英]Liferay 7 cannot add or edit page,portlet and sites

I installed Liferay on my server, and i get problem of not being able to add, update the site, page, and portlet. 我在服务器上安装了Liferay,但遇到无法添加,更新站点,页面和portlet的问题。 Only in View mode. 仅在查看模式下。

Just FYI i'm using: 仅供参考,我正在使用:

  • Liferay 7.0 CE GA6 Liferay 7.0 CE GA6
  • Linux OS v 3.10.0-693.21.1.el7.x86_64 Linux操作系统v 3.10.0-693.21.1.el7.x86_64
  • Architecture : amd64 架构:amd64
  • JAVA 1.8.0 JAVA 1.8.0

The main page of my liferay only displays the Hello World portlet , and the navigation portlet and the configure page displaying message: liferay的主页仅显示Hello World portlet ,而导航portlet配置页面显示消息:

This portlet has been undeployed. 此Portlet已取消部署。 Please redeploy it or remove it from the page. 请重新部署它或将其从页面中删除。

在此处输入图片说明

I have read some literature, saying that my liferay bundle is corrupted. 我读过一些文献,说我的生命之光捆绑包已损坏。

I already downloaded bundle liferay with wget or drag and drop bundle.zip via FTP. 我已经使用wget下载了捆绑软件liferay或通过FTP拖放bundle.zip。 But always get the same result. 但总是得到相同的结果。

Resulting errors in tail -f ../logs/catalina.out : tail -f ../logs/catalina.out导致的错误:

When starting liferay : 启动liferay时:

Caused by: java.lang.RuntimeException: org.portletbridge.portlet.GUIDException: error - failure to instantiate GUIDGeneratorjava.net.UnknownHostException: portal: portal: Name or service not known
---
ERROR [localhost-startStop-1][com_liferay_portal_osgi_web_portlet_tracker:97] [com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker(22)] The activate method has thrown an exception
java.lang.ExceptionInInitializerError
        at org.portletbridge.portlet.PortletBridgePortlet.createViewPortlet(PortletBridgePortlet.java:219)

When access navigation portlet or the configure page : 当访问导航portlet配置页面时

ERROR [http-nio-8080-exec-6][BaseJSPPortletConfigurationIcon:59] Unable to include JSP /configuration/icon/copy_applications.jsp
ERROR [localhost-startStop-1][com_liferay_portal_osgi_web_portlet_tracker:97] [com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker(22)] The activate method has thrown an exception
Caused by: java.lang.NullPointerException
        at org.apache.jsp.configuration.icon.copy_005fapplications_jsp._jspService(copy_005fapplications_jsp:410)

Does any one know how to fix this? 有谁知道如何解决这一问题?

I mean, Liferay can work normally as usual, as in the myliferay on localhost. 我的意思是,Liferay可以像往常一样正常工作,就像在localhost上的myliferay中一样。 Thank you for your attention. 感谢您的关注。

We faced this issue as well recently. 我们最近也面临这个问题。 Because of an unsatisfied reference, not all of GroupPagesPortlet's services started. 由于不满意的引用,并非所有GroupPagesPortlet的服务都已启动。 In our case, there were an entry in the release_ table which state_ was not 0, it was 1. Value 1 means a failed upgrade. 在我们的例子中,release_表中有一个state_不为0的条目,而是1。值1表示升级失败。

In our case the workaround/solution was to change the value to 0 then restart the server. 在我们的情况下,解决方法/解决方案是将值更改为0,然后重新启动服务器。

In more details: 详细信息:

1) Connected to Gogo shell 1)连接到Gogo外壳

2) Ran scr:list Found: [ 389] com.liferay.layout.admin.web.internal.portlet.GroupPagesPortlet enabled [2746] [unsatisfied reference] 2)Ran scr:list找到:[389] com.liferay.layout.admin.web.internal.portlet.GroupPagesPortlet已启用[2746] [不满意的参考]

3) Running scr:info on the component ID (2746 in the above output), it reported the following unsatisfied references: 3)在组件ID(上面的输出中为2746)上运行scr:info,它报告了以下不满意的引用:

UnsatisfiedReference: MDRActionLocalService
  Target: null
  (no target services)
UnsatisfiedReference: MDRActionService
  Target: null
  (no target services)
UnsatisfiedReference: MDRRuleGroupInstanceLocalService
  Target: null
  (no target services)
UnsatisfiedReference: MDRRuleGroupInstanceService
  Target: null
  (no target services)

4) Ran dm wtf and it reported that com.liferay.mobile.device.rules.service doesn't have a proper release state, or is at the wrong version: 4)运行dm wtf,并报告com.liferay.mobile.device.rules.service没有正确的释放状态,或者版本错误:

  • com.liferay.portal.kernel.model.Release (&(release.bundle.symbolic.name=com.liferay.mobile.device.rules.service)(&(release.schema.version>=1.0.0)(!(release.schema.version>=1.1.0)))(|(!(release.state=*))(release.state=0))) is not found in the service registry com.liferay.portal.kernel.model.Release(&(release.bundle.symbolic.name = com.liferay.mobile.device.rules.service)(&&(release.schema.version> = 1.0.0)(!在服务注册表中找不到(release.schema.version> = 1.1.0)))(|(!(release.state = *))(release.state = 0)))

So to summarize, com.liferay.mobile.device.rules.service failed to upgrade, which resulted in all of its transitive dependencies failing to start. 综上所述,com.liferay.mobile.device.rules.service升级失败,导致其所有传递依赖项均无法启动。 GroupPagesPortlet happens to be one of those dependencies. GroupPagesPortlet恰好是那些依赖项之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM