Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-12 Thread Lyallex
2009/6/11 Mark Thomas ma...@apache.org: Lyallex wrote: 2009/6/11 Caldarale, Charles R chuck.caldar...@unisys.com: Writing to the webapp's deployment location is a bad idea - you again have no guarantee that it's allowed, and you're at the whims of the container and execution environment

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Mark Thomas
Lyallex wrote: The logging output gives the following INFO: The path to the image cache is C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache This is a side effect of using the anti-locking attributes on your context. Mark

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Lyallex
2009/6/11 Mark Thomas ma...@apache.org: Lyallex wrote: The logging output gives the following INFO: The path to the image cache is C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache This is a side effect of using the anti-locking attributes on your context. Er, OK ... thanks.

RE: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Caldarale, Charles R
From: Lyallex [mailto:lyal...@gmail.com] Subject: Dynamic Resources: getRealPath() returns the 'wrong' path INFO: The path to the image cache is C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache ServletContext.getRealPath() is one of the leftovers from the early days

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Lyallex
2009/6/11 Caldarale, Charles R chuck.caldar...@unisys.com: Writing to the webapp's deployment location is a bad idea - you again have no guarantee that it's allowed, and you're at the whims of the container and execution environment controlling the actual location.  Much better to write

RE: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Caldarale, Charles R
From: Lyallex [mailto:lyal...@gmail.com] Subject: Re: Dynamic Resources: getRealPath() returns the 'wrong' path Works perfectly ... except I just cannot get he DefaultServlet to serve any images that are written to any directory anywhere on the filesystem after the server has started

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Mark Thomas
Lyallex wrote: 2009/6/11 Caldarale, Charles R chuck.caldar...@unisys.com: Writing to the webapp's deployment location is a bad idea - you again have no guarantee that it's allowed, and you're at the whims of the container and execution environment controlling the actual location. Much

Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-10 Thread Lyallex
Hi apache-tomcat-6.0.16 jdk1.6.0_03 Dev box : Windows Deployment box: Linux I have my server installed at C:\servers\tomcat\apache-tomcat-6.0.16\ My application is installed at C:\servers\tomcat\apache-tomcat-6.0.16\webapps\ROOT I have an image cache available at