Invoking ServletContext.getRealPath() in archived web applications throws NullPointerException

(Doc ID 858783.1)

Last updated on APRIL 13, 2018

Applies to:

Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 14-Jun-2011***


Symptoms

When ServletContext.getRealPath() is called from within an archive web application, java.lang.NullPointerException is thrown.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms