This bug was discovered while testing the FacesBridge TCK TestPage219 (resourcesRenderedInHeadTest) on both Apache Pluto 3.0 and Liferay Portal 7.1.0-SNAPSHOT.
The test includes a Facelet view named resourcesRenderedInHeadTest.xhtml that contains an EL expression with the resource keyword:
On Apache Pluto, the URL for the src attribute is rendered as:
On Liferay Portal, the URL for the src attribute is:
These URLs are not absolute ResourceURLs. Instead, they are relative URLs that are suited for a webapp environment. Because of this they generate a 404 error.
The solution to this problem is to use the following syntax:
Note: While debugging, it became apparent that null values were being added to the componentResourceStack. This may or may not be related to the problem.