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

2009-06-12 Thread Lyallex
2009/6/11 Mark Thomas : > Lyallex wrote: >> 2009/6/11 Caldarale, Charles R : >> >>> 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

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

2009-06-11 Thread Mark Thomas
Lyallex wrote: > 2009/6/11 Caldarale, Charles R : > >> 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 >> yo

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

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

2009-06-11 Thread Lyallex
2009/6/11 Caldarale, Charles R : > 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 > your files outside of Tom

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 that p

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

2009-06-11 Thread Lyallex
2009/6/11 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. Er, OK ... thanks. > > Mar

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 ---