geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hong Fang (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5405) In servlet, getServletConfig().getServletContext().getRealPath("/") return null
Date Thu, 05 Aug 2010 06:27:16 GMT


Han Hong Fang commented on GERONIMO-5405:

I'd like to recap the discussion in tomcat mailing list (ref details here:

In Geronimo, getRealPath() 

1. if the archive file of web application contains JAR file which has META-INF/resources directory,
then getRealPath() returns the virtual path of the given rescource NO MATTER the given rescource
exists or not
2. return null  in other situation

Based on this conclustion, the previous patch is invalid, meanwhile this JIRA is invalid as
well. I suggest to close this JIRA.

> In servlet, getServletConfig().getServletContext().getRealPath("/") return null
> -------------------------------------------------------------------------------
>                 Key: GERONIMO-5405
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 3.0-M1, 3.0
>            Reporter: Forrest Xia
>            Assignee: Ivan
>         Attachments: Geronimo-5405.patch
> In the OSGi environment, no expanded web app directories in the geronimo repository,
so we need a way to get the resource within jar/war/ear/car.
> This bug causes daytrader app cannot initialize the database tables from the enclosed
sql file.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message