tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <>
Subject Re: WebApps sharing uploaded files
Date Wed, 05 Oct 2011 17:12:39 GMT

chris wrote:
> Be careful: if you undeploy the webapp, you will have all those files
> deleted by Tomcat.
Ok. Thank you!

André wrote:
> Thanks. Seen.  Lea, do you follow ? 
Yes, thanks!

I do not properly understand the doc.:

1) "aliases" is an attribute. Is it an attribute of the "Context" element?

2) I have a "context.xml" file in "META-INF" in both "w1" and "w2". I have

2.A) context.xml

<?xml version='1.0' encoding='utf-8'?>
<Context aliases="/attachments=C:\somewhere_1\somewhere_2\somewhere_3">

2.B) I've created a "foo.txt" file in the directory

2.C) test_download.html

    <title>Test download</title>
     /attachments/foo.txt Foo.txt 

When I click the link, I get a 404 error:

HTTP Status 404 - /attachments/foo.txt
type Status report
message /attachments/foo.txt
description The requested resource (/attachments/foo.txt) is not available.

What am I doing wrong?

Thank you and best regards,
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