1. Open Eclipse, create a liferay portlet project.
2. Go to New Liferay Portlet>Next>Next.
3. In the page "Specify Liferay portlet deployment descriptor details.", select "Add to Control Panel" and select "Create Entry Class", then unselect "Add to Control Panel", then click 'Finish'.
– Open the liferay-portlet.xml file of this portlet project. You can see the entry-class has created in the xml file, and there is an error alert.