Description of problem: Links to PDF files in Home Page portlet do not work. Namely the problems are: - "What Does JBoss EPP 5 Mean To Me?" points to http://[IP_ADDR]:8080/portal/docs/gatein-3-10.pdf - "Portals The Red Hat Way" points to http://[IP_ADDR]:8080/portal/docs/JBoss_Portals_0310.pdf Clicking on any of the links leads to HTTP status 404 and the following error in the server log: ERROR [WebAppController] Could not associate the request path=/docs/gatein-3-10.pdf with an handler (ERROR [WebAppController] Could not associate the request path=/docs/JBoss_Portals_0310.pdf with an handler)
Can be fixed by updating pattern of staticResource handler at controller.xml: <!-- Static resource handler needs to be before the portal handler --> <route path="/{gtn:path}"> <route-param qname="gtn:handler"> <value>staticResource</value> </route-param> <path-param qname="gtn:path" encoding="preserve-path"> <pattern>.*\.(jpg|png|gif|ico|css|pdf)</pattern> </path-param> </route>