[
https://issues.apache.org/jira/browse/GERONIMO-5743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085744#comment-13085744
]
Ivan commented on GERONIMO-5743:
--------------------------------
Commit first steps to trunk at . The clean up function mentioned in item f is
not implemented yet.
Two properties are introduced, org.apache.geronimo.webapplication.stage and
org.apache.geronimo.webapplication.getrealpath.support, 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.
org.apache.geronimo.webapplication.getrealpath.support 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: https://issues.apache.org/jira/browse/GERONIMO-5743
> 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: http://www.atlassian.com/software/jira