[
https://issues.apache.org/jira/browse/GERONIMO-5405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895566#action_12895566
]
Han Hong Fang commented on GERONIMO-5405:
-----------------------------------------
I'd like to recap the discussion in tomcat mailing list (ref details here:
http://tomcat.markmail.org/search/?q=getRealPath#query:getRealPath%20order%3Adate-backward+page:1+mid:magzax6enfqq7q6f+state:results)
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: https://issues.apache.org/jira/browse/GERONIMO-5405
> 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.