tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trojansnake12 <>
Subject RE: Debian Tomcat Fail
Date Thu, 28 May 2009 21:42:05 GMT

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 []
>> Subject: Re: Debian Tomcat Fail
>> The
>> "../webapps/geosim/WEB-INF/classes/" 
>> 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
> 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:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message