Re: Embedded Tomcat how to use addContext for docBase

2013-01-30 Thread Jimmy Johnson
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

Re: Embedded Tomcat how to use addContext for docBase

2013-01-30 Thread Konstantin Kolinko
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

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread 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"); 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

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Konstantin Kolinko
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