You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bert Van Kets <be...@vankets.com> on 2004/02/11 16:02:42 UTC

upload dir cleared at Cocoon startup

Hi all,
I have a very annoying problem regarding uploads.
To be able to do multi part uploads I went to web.xml and set the
enable-uploads init-param to true and the upload-directory to "data" (no
quotes of course). As I need ony one upload directory, it looked like the
obvious choice to me to have Cocoon handle the uploads.

Since I set these parameters, my upload directory is cleared totally when I
restart Tomcat. This is totally unusable of course. It worked perfectly in
an older version of Cocoon, but with a very recent CVS HEAD the upload dir
is cleared.
I have looked all over the web.xml file, but can't see any indication of
this being settable.

I'm not talking about uploading a file and processing it. The whole
directory is cleared at Cocoon startup.

Any ideas? I can't find any mention of it anywhere.

Bert



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: upload dir cleared at Cocoon startup

Posted by Askild Aaberg Olsen <as...@xangeli.com>.
> Doesn't anybody have an idea on this one.
> This is just a bump back up the list.

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107626758900778&w=2

Read Geoff's second paragraph. Maybe this is the reason?

Askild


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: upload dir cleared at Cocoon startup

Posted by Bert Van Kets <be...@vankets.com>.
Doesn't anybody have an idea on this one.
This is just a bump back up the list.

Bert
----- Original Message ----- 
From: "Bert Van Kets" <be...@vankets.com>
To: <us...@cocoon.apache.org>
Sent: Wednesday, February 11, 2004 4:02 PM
Subject: upload dir cleared at Cocoon startup


> Hi all,
> I have a very annoying problem regarding uploads.
> To be able to do multi part uploads I went to web.xml and set the
> enable-uploads init-param to true and the upload-directory to "data" (no
> quotes of course). As I need ony one upload directory, it looked like the
> obvious choice to me to have Cocoon handle the uploads.
>
> Since I set these parameters, my upload directory is cleared totally when
I
> restart Tomcat. This is totally unusable of course. It worked perfectly in
> an older version of Cocoon, but with a very recent CVS HEAD the upload dir
> is cleared.
> I have looked all over the web.xml file, but can't see any indication of
> this being settable.
>
> I'm not talking about uploading a file and processing it. The whole
> directory is cleared at Cocoon startup.
>
> Any ideas? I can't find any mention of it anywhere.
>
> Bert
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: upload dir cleared at Cocoon startup

Posted by Geoff Howard <co...@leverageweb.com>.
Bert Van Kets wrote:

> Hi all,
> I have a very annoying problem regarding uploads.
> To be able to do multi part uploads I went to web.xml and set the
> enable-uploads init-param to true and the upload-directory to "data" (no
> quotes of course). As I need ony one upload directory, it looked like the
> obvious choice to me to have Cocoon handle the uploads.
> 
> Since I set these parameters, my upload directory is cleared totally when I
> restart Tomcat. This is totally unusable of course. It worked perfectly in
> an older version of Cocoon, but with a very recent CVS HEAD the upload dir
> is cleared.
> I have looked all over the web.xml file, but can't see any indication of
> this being settable.
> 
> I'm not talking about uploading a file and processing it. The whole
> directory is cleared at Cocoon startup.
> 
> Any ideas? I can't find any mention of it anywhere.

Not much time now, but:
1) Make sure you've read and understood the link provided in the 
response from Askild.  Sounds like knew that already though.
2) What was the "older" version of Cocoon approximately?  2.1.3? pre 
2.1.0?  2.0.x?
3) Where is your upload dir, and did you switch from tomcat to jetty?
4) If you stop the container (jetty, tomcat, etc.), place a file in the 
upload dir, start the container, check for the file & replace if 
missing, upload a file, check for both files & replace the original if 
missing (the uploaded file should not be there after the request 
finishes), stop the container, check for the original file what happens?

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org