tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz-Josef Herpers <>
Subject getRealPath() returns real path plus context path
Date Mon, 05 Sep 2005 19:39:47 GMT

I've a problem when using ServletContext#getRealPath() with Tomcat 5.5.9.

My web application resides under the name "tool" in the webapps 
directory. When I call 
servletContext.getRealPath(request.getContextPath() I get the real path 
but always with the context path added at the end. That means a path 
like C:\path\to\tomcat\webapps\tool\tool.

Is there any explanation for this behaviour? Or am I doing something wrong?

Thanks for any hints in advance


Franz-Josef Herpers
Puschkinallee 9A
12435 Berlin
030/53 21 33 02
0173/54 23 666

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message