Re: FileDirContext fails to immediately recognise new files

2008-02-15 Thread Mick Semb Wever
> assign the classname attr inside the classname=org.apache.naming.resources.FileDirContext > > http://dspace.dsto.defence.gov.au/tomcat-docs/config/resources.html > Sorry for asking so hastily. Seems to work well with META-INF/context.xml: Thanks very much for pointing me in the right dire

Re: FileDirContext fails to immediately recognise new files

2008-02-15 Thread Mick Semb Wever
> assign the classname attr inside the classname=org.apache.naming.resources.FileDirContext > > http://dspace.dsto.defence.gov.au/tomcat-docs/config/resources.html > Sorry for asking so hastily. Seems to work well with META-INF/context.xml: Thanks very much for pointing me in the right dire

FileDirContext fails to immediately recognise new files

2008-02-15 Thread Mick Semb Wever
My application writes new files out into the container's webapps/ROOT/ directory. But servletContext.getResource(..) returns null if it is called too quickly after the file has been created. This can be debugged all the way down to FileDirContext simply not finding the file. Funny when "new F