I can deploy portlets and the portlets can be added to the page. The only issue is, that all files declared in liferay-portlet.xml can't be found and 404 or 500 errors are returned. There is no issue with the jsps. This issue happens on a local installations as well as on aws ami installations. webarchive (war_) files from the marketplace which you can be found under /Liferay627/apps/liferay/data/data/document_library/20155/0/marketplace are deployed correctly. To create the malfunctioning war_ files I used Liferay IDE. If I copy the content of a portlet into docroot and deploy the war_ file, the issue is there again. What can I do to deploy a custom portlet and all requested files are returned correctly?