I installed Liferay on my server, and i get problem of not being able to add, update the site, page, and portlet. Only in View mode.
Just FYI i'm using:
The main page of my liferay only displays the Hello World portlet , and the navigation portlet and the configure page displaying message:
This portlet has been undeployed. 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. But always get the same result.
Resulting errors in tail -f ../logs/catalina.out
:
When starting 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 :
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. Thank you for your attention.
We faced this issue as well recently. Because of an unsatisfied reference, not all of GroupPagesPortlet's services started. 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.
In our case the workaround/solution was to change the value to 0 then restart the server.
In more details:
1) Connected to Gogo shell
2) Ran scr:list Found: [ 389] com.liferay.layout.admin.web.internal.portlet.GroupPagesPortlet enabled [2746] [unsatisfied reference]
3) Running scr:info on the component ID (2746 in the above output), it reported the following unsatisfied references:
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:
So to summarize, com.liferay.mobile.device.rules.service failed to upgrade, which resulted in all of its transitive dependencies failing to start. GroupPagesPortlet happens to be one of those dependencies.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.