You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/27 10:38:09 UTC
DO NOT REPLY [Bug 12067] -
Tomcat 4.0.4 returns [null] for getServletContext getRealPath for unpacked wars
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12067>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12067
Tomcat 4.0.4 returns [null] for getServletContext getRealPath for unpacked wars
remm@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From remm@apache.org 2002-08-27 08:38 -------
It is allowed to return null in that case, so it is not a bug as Scott
mentioned. This is a beneficial feature in the specification as it allows
filesystem indepedence, so it is unlikely this will be changed.
It is best if your webapp does not rely on having direct filesystem access. Use
getResource or getResourceAsStream if you can.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>