WebSphere Portlet Factory Placeholder – No portlets defined in project

Problem

The project has a portlet adapter, but WEB-INF/portlet.xml has no model defined for the model init-param. After deploying the portlet WAR, the message “WebSphere Portlet Factory Placeholder – No portlets defined in project – projectName” is displayed for the portlet title and description.

Solution

  • In your project delete the WebContent\WEB-INF\models\ExternalModelProperties.xml file. This file will not be visible in the Project Explorer view. You can find it by using the Navigator view (Window > Show View > Other > General > Navigator).
  • Open each portlet model and regen then save it.
  • Publish the application to get it to regenerate the portlet.xml, then you can verify that the WEB-INF/portlet.xml contains a model in the value for the model init-param.
This entry was posted in IBM WebSphere Portal and tagged . Bookmark the permalink.