Support Article
URL to static images do not work post Pega 7 upgrade
SA-11574
Summary
Static images stored on the filesystem are no longer accessible through URLs in the format:
http://server:port/prweb/MyImages/FileName
Error Messages
Not Applicable
Steps to Reproduce
1. Create a directory in the web root folder / application war directory (prweb folder by default) or Extended Document Root containing images.
2. Attempt to access the images directly through URL to observe the issue.
Root Cause
Pega 7 uses a /* Servlet Mapping which means by default all requests are passed to the WebStandard servlet.
Resolution
Comment out the <servlet-mapping> for the WebStandard <servlet-name> that has the /* <url-pattern> in the web.xml associated with the Pega 7 deployment as shown in the example image below.
Note that this change will mean that the system URL ending in prweb (for example, http://server:port/prweb) will no longer work and it will be necessary to use the URL including PRServlet (for example, http://server:port/prweb/PRServlet).
Published July 14, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.