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

后端 未结 4 1745
野的像风
野的像风 2021-02-20 10:45

I have created a sample Liferay portlet and it has successfully deployed. But, the eclipse console didn\'t say \"1 portlet is ready for use\". And, I couldn\'t find this portlet

相关标签:
4条回答
  • 2021-02-20 11:21

    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.

    0 讨论(0)
  • 2021-02-20 11:25

    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.

    0 讨论(0)
  • 2021-02-20 11:30

    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!

    0 讨论(0)
  • 2021-02-20 11:43

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

    0 讨论(0)
提交回复
热议问题