ServletContext getRealPath cause problems on Weblogic

Hi All,

Sometime we face issues with the application where some of the Jsp/servlets try to access the resources using getRealPath of the ServletContext class.

The problem is that it works only when you explode the war file. Even there is a CR CR299135 for the weblogic 10+ versions to tackle this issue.

You have to configure the <show-archived-real-path-enabled> flag to let weblogic returns the actual path of the application.

This configuration can be applied 2 ways.

1. Domain Level

2  Application Level

1. For setting Domain Level: Open the config.xml and set the




2 Now to configure at Application Level, in weblogic.xml




Hope this helps.

R Vashi