Unable to view deployed Liferay portlet in the add >> more option

时光总嘲笑我的痴心妄想 提交于 2019-12-04 04:23:08
Prakash K

As Mark mentioned, it is undeterministic and it sometimes happen. I usually follow the following steps and after this it works normally.

Steps:

  1. remove all the references of the portlet from webapps.
  2. stop the server
  3. deploy the portlet's WAR
  4. restart the server
  5. check the logs if the portlet is deployed.

If possible try to build the WAR again and deploy the new WAR, and follow the previous steps.

Also if this doesn't work try to clear the temp and work directory and again try the previous steps.

Hope this helps.

I have been fighting with this problem for a day. For me it was two things: wrong property of

liferay.home

inside

portal-setup-wizard.properties

Only after correction I was able too see in tomcat logs that my liferay-plugins had higher version than liferay itself. I redownload plugins with correct version and new plugin deployed correctly.

That is undeterministc but usual error. Try to undeploy the portlet - delete portlet directory under tomcat/webapps and try to deploy again.

Κεχρολόγος Διονύσιος

If you've done all the cleaning etc. and it still does not work, there may be another reason for not showing. If you have - for some reson - deactivated the portlet in Liferay, it will remember the setting even though you have undeployed it several times.

So, you must go to Control Panel > App Manager > All Apps > Your portlet name and activate it again!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!