geronimo-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/GERONIMO-5743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085509#comment-13085509
] 

Ivan commented on GERONIMO-5743:
--------------------------------

Will come up a temporary solution for this, as it is related to some other aspects, such as
how the applications are kept in Geronimo, etc.
The idea is that : 
a. in the first application start up, all the contents will be extracted to a temporary directory,
also turn to use a directory context implementation.
b. A flag file contains the last modification time of the application bundle is kept, which
will be used to detect whether it is required to update the contents in the temporary folder.
c. Hardcode Geronimo system artifacts there, so that it could be used to avoid extract those
console web applications.
d. By default, the extract action will be take effect, and a context value could be configured
in the web.xml to turn off this function.
e. Based on the extracted directory, it is possible to update the application files immediately
in the debug mode
f. I am thinking to use a DeploymentWatcher to remove the extracted applications, but need
to record some information somewhere, like artifact id to temp directory path.

> 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

        

Mime
View raw message