geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <>
Subject [jira] [Commented] (GERONIMO-5743) ServletContext.getRealPath() returns null
Date Tue, 16 Aug 2011 14:45:27 GMT


Ivan commented on GERONIMO-5743:

Commit first steps to trunk at . The clean up function mentioned in item f is not implemented
Two properties are introduced, org.apache.geronimo.webapplication.stage and,
both of them could be configured in two ways :
a. Use -D**** while starting the Geronimo server
b. Configure it as context-param for the web application in the web.xml
The option b has the high priority.
org.apache.geronimo.webapplication.stage can be configured with production and development,
and its default value is production if it is not configured. While it is configured with development,
the contents of the whole application will be extracted to the temp directory, and that directory
is used for resource searching for each web request. can be configured with true or false,
and its default value is true. While its values is true, all the web application contents
will be extracted to the temp folder, and the application could use getRealPath to get the
actual physical path for the specified resource, the File instance will be always returned
even if the target resource does not exist.

> ServletContext.getRealPath() returns null
> -----------------------------------------
>                 Key: GERONIMO-5743
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: web
>    Affects Versions: 3.0-M1
>            Reporter: Jarek Gawor
>            Assignee: Ivan
>             Fix For: 3.0
> In 3.0 M1 and trunk, ServletContext.getRealPath() returns null. In previous versions
of Geronimo a real path was returned. Returning null is ok from specification point of view
but it breaks compatibility for applications. It also looks like there are a number of web
applications that rely on the getRealPath() to return a non-null value. One such application
is Nexus web app.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message