Re: Tomcat 5.5 creates 0 byte files

2010-07-05 Thread Murat Birben
You all right about ESXi issue, df -k shows only the virtual machines storage and that error is occured because of the max number of files allowed by OS. I will try out the things Andre, Pid and Chris suggested and then i'll hopefully write you good news about my problem. Again thanks for all your

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Murat, On 7/2/2010 4:43 AM, Murat Birben wrote: > I have a very simple file upload mechanism in java. I'll say: it's simply not going to work. > File file = new File(strPath + strFileName); > fileOutputStream = new FileOutput

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Pid wrote: On 02/07/2010 14:33, Murat Birben wrote: It is a virtual machine on ESXi so df shows me the whole storage I Does it? I'm not sure it does. No, it does not. It shows only the disks allocated to this virtual machine. That's the point of virtual machines, you /can/ only access whate

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: Actually i'm not familiar with the interanls of enctype="multipart/form-data" thing. I think, i should read about this right? Right. Start here : http://www.w3.org/TR/html401/interact/forms.html 17.13 Form submission Then graduate to this if you really want to know the deta

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 14:33, Murat Birben wrote: > It is a virtual machine on ESXi so df shows me the whole storage I Does it? I'm not sure it does. > think. Is there any other way to see the disk usage for virtual machines? That's a question I can't answer I'm afraid. p > On Fri, Jul 2, 2010 at 4:

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Actually i'm not familiar with the interanls of enctype="multipart/form-data" thing. I think, i should read about this right? By the way i'll change the tag as you and Pid suggested. Thanks, On Fri, Jul 2, 2010 at 4:21 PM, André Warnier wrote: > Murat Birben wrote: > >> Ok, here is the html fo

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
It is a virtual machine on ESXi so df shows me the whole storage I think. Is there any other way to see the disk usage for virtual machines? On Fri, Jul 2, 2010 at 4:20 PM, Pid wrote: > On 02/07/2010 14:02, Murat Birben wrote: > > ubuntu 8.04 server > > What does the command 'df -k' report? > P

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
eturn-214291-racarlson= >> mediacomcc@tomcat.apache.org] On Behalf Of Murat Birben [ >> muratbir...@gmail.com] >> Sent: Friday, July 02, 2010 6:01 AM >> To: Tomcat Users List; p...@pidster.com >> Subject: Re: Tomcat 5.5 creates 0 byte files >> >> Yes 0 byte f

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 14:21, André Warnier wrote: > Murat Birben wrote: >> Ok, here is the html form: >> >> > enctype="multipart/form-data"> >> >> FileName :> name="FileName" /> >> Path: >>

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: Ok, here is the html form: FileName : Path: Ok. First, you should probably change the tag as follows : Next: When the browser sends t

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 14:02, Murat Birben wrote: > ubuntu 8.04 server What does the command 'df -k' report? Please paste the results. p > On Fri, Jul 2, 2010 at 3:50 PM, Pid > wrote: > > On 02/07/2010 12:20, Murat Birben wrote: > > I'm getting "There is no space left

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Ok, here is the html form: FileName : Path: Thanks for your concern, On Fri, Jul 2, 2010 at 4:02 PM, André Warnier wrote: > Murat Birben wrote: > >> I've tried

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: I've tried apache.commons.fileupload api but the result doesn't change. I set the selenium waitForPageToLoad prop very small to produce the problem and when time exceeded test fails and thousands of 0 bytes are generated. I'll try the oreilly fileupload api too but it seems to

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
ubuntu 8.04 server On Fri, Jul 2, 2010 at 3:50 PM, Pid wrote: > On 02/07/2010 12:20, Murat Birben wrote: > > I'm getting "There is no space left on disk" message when i try to do > > some work on the server after this 0 byte files are created > > What is your OS and exact version? > > > p > > >

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 12:20, Murat Birben wrote: > I'm getting "There is no space left on disk" message when i try to do > some work on the server after this 0 byte files are created What is your OS and exact version? p > On Fri, Jul 2, 2010 at 1:13 PM, Pid > wrote: > >

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
gmail.com] > Sent: Friday, July 02, 2010 6:01 AM > To: Tomcat Users List; p...@pidster.com > Subject: Re: Tomcat 5.5 creates 0 byte files > > Yes 0 byte files are causing the disk to run out of space > > @Andre Warnier > I'm not actually saving files on the server. I just

RE: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Ralph Carlson
@tomcat.apache.org [users-return-214291-racarlson=mediacomcc@tomcat.apache.org] On Behalf Of Murat Birben [muratbir...@gmail.com] Sent: Friday, July 02, 2010 6:01 AM To: Tomcat Users List; p...@pidster.com Subject: Re: Tomcat 5.5 creates 0 byte files Yes 0 byte files are causing the disk to run out of space

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
I'm getting "There is no space left on disk" message when i try to do some work on the server after this 0 byte files are created On Fri, Jul 2, 2010 at 1:13 PM, Pid wrote: > On 02/07/2010 11:01, Murat Birben wrote: > > Yes 0 byte files are causing the disk to run out of space > > You understand

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 11:01, Murat Birben wrote: > Yes 0 byte files are causing the disk to run out of space You understand my surprise? Are you sure the disk is running out of space, or is it that the number of files permitted in a directory has been exceeded? p > @Andre Warnier > I'm not actually s

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Yes 0 byte files are causing the disk to run out of space @Andre Warnier I'm not actually saving files on the server. I just tried to simplify my problem and tried that simple code. Now i'll give a try to apache fileupload api, thanks for advice On Fri, Jul 2, 2010 at 11:52 AM, Pid wrote: > On

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Mark Thomas wrote: On 02/07/2010 11:00, André Warnier wrote: - up to Tomcat 5.5, there was an application called DAV available with Tomcat. The WebDAV servlet is still there in Tomcat 7. We just removed the example app from 6 onwards. Noted, thanks. But it seems hard to find. I do not see

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
André Warnier wrote: ... The point is : allowing users to upload files to the server, and allowing them to specify a path on the server, is dangerous and difficult to do right. Better to use something that is already ready and debugged. Let me be more explicit, after having just a quick loo

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Mark Thomas
On 02/07/2010 11:00, André Warnier wrote: - up to Tomcat 5.5, there was an application called DAV available with Tomcat. The WebDAV servlet is still there in Tomcat 7. We just removed the example app from 6 onwards. - see http://commons.apache.org/fileupload/ (this may even be included in

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: Hi all, I have a very simple file upload mechanism in java. I just take the file and save it on the server. I'm testing this simple code with selenium and *when a timeout occurs in the selenium test *tomcat creates 0 byte files under tomcat_home/work/Catalina/localhost/upload

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 09:43, Murat Birben wrote: > Hi all, > > I have a very simple file upload mechanism in java. I just take the file and > save it on the server. I'm testing this simple code with selenium and *when > a timeout occurs in the selenium test *tomcat creates 0 byte files under > tomcat_home

Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Hi all, I have a very simple file upload mechanism in java. I just take the file and save it on the server. I'm testing this simple code with selenium and *when a timeout occurs in the selenium test *tomcat creates 0 byte files under tomcat_home/work/Catalina/localhost/uploadServlet/ directory as