Java Liferay 7无法添加或编辑页面、portlet和站点
我在服务器上安装了Liferay,但我遇到了无法添加、更新站点、页面和portlet的问题。仅在查看模式下 仅供参考,我正在使用:Java Liferay 7无法添加或编辑页面、portlet和站点,java,liferay-7,Java,Liferay 7,我在服务器上安装了Liferay,但我遇到了无法添加、更新站点、页面和portlet的问题。仅在查看模式下 仅供参考,我正在使用: Liferay 7.0 CE GA6 Linux操作系统版本3.10.0-693.21.1.el7.x86_64 架构:amd64 JAVA 1.8.0 my liferay的主页仅显示Hello World portlet,导航portlet和配置页面显示消息: 此portlet已取消部署。请重新部署它或将其从 这一页 我读过一些文献,说我的liferay捆
- Liferay 7.0 CE GA6
- Linux操作系统版本3.10.0-693.21.1.el7.x86_64
- 架构:amd64
- JAVA 1.8.0
wget
下载了捆绑包liferay,或者通过FTP拖放bundle.zip。但总是得到同样的结果
在tail-f../logs/catalina.out中产生错误
:
启动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)
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)
访问导航portlet或配置页面时:
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)
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)
有人知道如何解决这个问题吗
我的意思是,Liferay可以像往常一样正常工作,就像本地主机上的myliferay一样。
感谢您的关注。我们最近也遇到了这个问题。由于引用不满意,并非GroupPagesPortlet的所有服务都已启动。在我们的例子中,release_u表中有一个条目的状态不是0,而是1。值1表示升级失败 在本例中,解决方法/解决方案是将值更改为0,然后重新启动服务器 详情如下: 1) 连接到Gogo外壳 2) Ran scr:列表 发现: [389]com.liferay.layout.admin.web.internal.portlet.GroupPagesPortlet已启用 [2746][不满意的参考资料] 3) 运行组件ID上的scr:info(上述输出中的2746),它报告了以下不满意的参考:
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) 运行了dm wtf,它报告com.liferay.mobile.device.rules.service没有正确的发布状态,或者版本错误:
- 在服务注册表中找不到com.liferay.portal.kernel.model.Release(&(Release.bundle.symbol.name=com.liferay.mobile.device.rules.service)(&(Release.schema.version>=1.0.0)(!(Release.schema.version>=1.1.0))(|(!(Release.state=*)(Release.state=0))
总之,com.liferay.mobile.device.rules.service未能升级,导致其所有可传递依赖项无法启动。GroupPagesPortlet恰好是这些依赖项之一。这很奇怪。您需要在那里进行一些故障排除,确保捆绑包是可靠的,如果您使用外来源,那么请仔细检查您的权限系统,以确保tomcat可以访问LIB,如果您来自GA5,请确保您执行了正确的升级过程。您也可以尝试docker,并避免这些问题: