I'm trying to access a file to read the image.  It is in my original post at
the top of this thread:

File myGifImage = new File("../webapps/geosim/WEB-INF/images/test.jpg");

It's very strange, using that relative path works fine on my Windows install
of Tomcat6.  But on my Debian machine, that sometimes goes in to the
!exists() if block, and sometimes after restarting it a couple times, it
works.  Very weird.  Giving it the absolute pathing ensures that it works
every time.

I know it isn't encountering a permissions error either, because (I know
this would be a bad idea if this were a legitimate production machine), I've
made all the permissions 777 public read, write, execute, for /var, /tomcat,
and recursively down the line.  This was simply for testing purposes so I
could eliminate that as a possible reason for the occurence.


Caldarale, Charles R wrote:
> 
>> From: trojansnake12 [mailto:boppn...@swbell.net]
>> Subject: Re: Debian Tomcat Fail
>> 
>> The
>> "../webapps/geosim/WEB-INF/classes/Project.java" 
>> does not work correctly.
> 
> When used from where?  What's the action being performed?
> 
>> What is the default relative path starting point?
> 
> For what kind of operation?
> 
>  - 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-tp23734947p23770668.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

Reply via email to