Sorry, this code was provided to me by a graduate student (I'm a lowly freshman). Still very new to all of this, I'll look into that.
Caldarale, Charles R wrote: > >> From: trojansnake12 [mailto:boppn...@swbell.net] >> Subject: RE: Debian Tomcat Fail >> >> File myGifImage = new File("../webapps/geosim/WEB-INF/images/test.jpg"); > > Very bad form. The servlet container (Tomcat) is under no obligation to > provide *any* access to the underlying file system (if there is one), > other than to a scratch area. You should be using > ServletContext.getResourceAsStream() rather than expecting File objects to > work. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Debian-Tomcat-Fail-tp23734947p23770783.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org