tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lacerda, Wellington (AFIS)" <>
Subject getRealPath
Date Thu, 12 Oct 2000 13:04:21 GMT
I tried this:

I created a directory to host an web app OUTSIDE tomcat. Created a context
as follows:

<Context path="/some/long/path" docBase="\\afct_003\C\morewebapps\test"
debug="0" reloadable="true" > 


The virtual path given by request.getRequestURI() is
The real path given by getServletContext.getRealpath(virtual path) is

Which is wrong, since /some/long/path is not in the real path !

I tried with a path/context INSIDE Tomcat with the same result.

Is it a bug of TOMCAT ? I'm using v 3.1. If so is it corrected in 3.2b5 (or
6) ?

Wellington Silva

View raw message