On Wed, 2003-11-05 at 12:30, Jim Lynch wrote: > On the dev. and prod. systems the getRealPath method returns the > expected string. On the testing environment it returns null.
I've found that getRealPath returns null when you are running your application from a war file without unpacking it. If the file you are trying to find doesn't exist on the disk, then this is an indication that you won't be able to get it with getRealPath. I guess this is because it is too complicated to patch into all the file manipulation functions to allow access to the packed contents of the war file. getResourceAsStream() works regardless of whether the war file is unpacked or not. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]