Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us