Awesome! Thanks a million Konstantin, it worked.
As for using the /tmp folder. "/tmp/images" is it actually just a place
where I give the images a uuid name, process them, and then save them
elsewhere immediately I then delete the original so it should be okay. I
will also add in the File.getAbs
2013/1/30 Jimmy Johnson :
> Ah, Okay, so I should use the addWebapp method to add a path to an external
> folder?
>
> e.g tomcat.addWebapp("/MyWebApp/images", "/tmp/images");
>
It should not matter whether it is an external folder or not, as you
are not relying on the autodeployment feature. There
Ah, Okay, so I should use the addWebapp method to add a path to an external
folder?
e.g tomcat.addWebapp("/MyWebApp/images", "/tmp/images");
Thanks,
Jimmy
On Tue, Jan 29, 2013 at 2:06 PM, Konstantin Kolinko
wrote:
> 2013/1/29 Jimmy Johnson :
> > System: Mac OS X 10.8
> > Tomcat Version: 7.0.30
2013/1/29 Jimmy Johnson :
> System: Mac OS X 10.8
> Tomcat Version: 7.0.30
> Language: Java
>
> I'm trying to set up the context in an embedded Tomcat instance to serve
> files from a local directory not within the deployed folder.
>
> In the standard server.xml when using the standard Tomcat confi