You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brad Lajoie <bl...@gmail.com> on 2010/03/17 07:54:53 UTC

how to do directory listing in tomcat 5.5

I've been trying for so long to get directory listing in Tomcat 5.5 to work
for my website and I still can't get it to work. Magically, at one point it
worked somewhat for directories with jpgs, css, js, etc files, but not
directories with video files such as mkv, avi, etc.

I've followed numerous sites instructing how to edit the web.xml in order to
get directory listings to work and still nothing works.

I'm developing in Eclipse, and running my web application, call it MyWebsite
for simplicity, on a Tomcat 5.5 server.

Here's one site I tried following to edit the web.xml:

http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q12

So I start up the server and run my website/webapp on it via:

http://localhost:8080/MyWebsite

This works just fine, but whenever I do:

http://localhost:8080/MyWebsite/images

This doesn't work, and yes there is an images directory in my web root which
in eclipse is MyWebsite/WebContent. So the images directory is in
MyWebsite/WebContent/images. This has become beyond frustrating and I really
need some help with this please.

I've also tried following the instructions at these sites:

http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html
http://linux-sxs.org/internet_serving/c581.html
http://wso2.org/blog/sumedha/1096
http://www.karakas-online.de/forum/viewtopic.php?t=9784

They're all relatively the same but nothing I do works! Please help!!

Thanks,
-Brad

RE: how to do directory listing in tomcat 5.5

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Brad Lajoie [mailto:blajoie55@gmail.com]
> Subject: Re: how to do directory listing in tomcat 5.5
> 
> If you opened any of the links you would see exactly what 
> I mean by how I'm supposed to edit the web.xml

What someone is supposed to do and what they actually did are often very different.  No one on this list gets paid for the help provided, so scanning through lots of links looking at often incorrect interpretations in order to help solve someone else's problem is not exactly high on the priority list.

If you really want some help, answer the questions by posting the edited files.

Also note that Eclipse likes to use its own configuration for Tomcat, ignoring whatever changes you think you made.  Try running Tomcat by itself, not under Eclipse.

 - 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to do directory listing in tomcat 5.5

Posted by Brad Lajoie <bl...@gmail.com>.
I have stated what I tried, I provided links to numerous sites describing
what to do and as I stated, I tried them all. If you opened any of the links
you would see exactly what I mean by how I'm supposed to edit the web.xml

-Brad

On Wed, Mar 17, 2010 at 3:45 AM, Pid <pi...@pidster.com> wrote:

> On 17/03/2010 06:54, Brad Lajoie wrote:
>
>> I've been trying for so long to get directory listing in Tomcat 5.5 to
>> work
>> for my website and I still can't get it to work. Magically, at one point
>> it
>> worked somewhat for directories with jpgs, css, js, etc files, but not
>> directories with video files such as mkv, avi, etc.
>>
>> I've followed numerous sites instructing how to edit the web.xml in order
>> to
>> get directory listings to work and still nothing works.
>>
>> I'm developing in Eclipse, and running my web application, call it
>> MyWebsite
>> for simplicity, on a Tomcat 5.5 server.
>>
>> Here's one site I tried following to edit the web.xml:
>>
>> http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q12
>>
>
> Edit it how?  You haven't actually stated what you've tried.
>
>
>
> p
>
>
>
>  So I start up the server and run my website/webapp on it via:
>>
>> http://localhost:8080/MyWebsite
>>
>> This works just fine, but whenever I do:
>>
>> http://localhost:8080/MyWebsite/images
>>
>> This doesn't work, and yes there is an images directory in my web root
>> which
>> in eclipse is MyWebsite/WebContent. So the images directory is in
>> MyWebsite/WebContent/images. This has become beyond frustrating and I
>> really
>> need some help with this please.
>>
>> I've also tried following the instructions at these sites:
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html
>> http://linux-sxs.org/internet_serving/c581.html
>> http://wso2.org/blog/sumedha/1096
>> http://www.karakas-online.de/forum/viewtopic.php?t=9784
>>
>> They're all relatively the same but nothing I do works! Please help!!
>>
>> Thanks,
>> -Brad
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: how to do directory listing in tomcat 5.5

Posted by CBy <to...@byrman.demon.nl>.
On 17-3-2010 8:45, Pid wrote:
> On 17/03/2010 06:54, Brad Lajoie wrote:
>> I've been trying for so long to get directory listing in Tomcat 5.5 
>> to work
>> for my website and I still can't get it to work. Magically, at one 
>> point it
>> worked somewhat for directories with jpgs, css, js, etc files, but not
>> directories with video files such as mkv, avi, etc.

You did check Tomcat's permissions on those problematic 
files/directories, didn't you?

>>
>> I've followed numerous sites instructing how to edit the web.xml in 
>> order to
>> get directory listings to work and still nothing works.
>>
>> I'm developing in Eclipse, and running my web application, call it 
>> MyWebsite
>> for simplicity, on a Tomcat 5.5 server.
>>
>> Here's one site I tried following to edit the web.xml:
>>
>> http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q12
>
> Edit it how?  You haven't actually stated what you've tried.
>
>
> p
>
>
>
>> So I start up the server and run my website/webapp on it via:
>>
>> http://localhost:8080/MyWebsite
>>
>> This works just fine, but whenever I do:
>>
>> http://localhost:8080/MyWebsite/images
>>
>> This doesn't work, and yes there is an images directory in my web 
>> root which
>> in eclipse is MyWebsite/WebContent. So the images directory is in
>> MyWebsite/WebContent/images. This has become beyond frustrating and I 
>> really
>> need some help with this please.
>>
>> I've also tried following the instructions at these sites:
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html
>> http://linux-sxs.org/internet_serving/c581.html
>> http://wso2.org/blog/sumedha/1096
>> http://www.karakas-online.de/forum/viewtopic.php?t=9784
>>
>> They're all relatively the same but nothing I do works! Please help!!
>>
>> Thanks,
>> -Brad
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Re: how to do directory listing in tomcat 5.5

Posted by Pid <pi...@pidster.com>.
On 17/03/2010 06:54, Brad Lajoie wrote:
> I've been trying for so long to get directory listing in Tomcat 5.5 to work
> for my website and I still can't get it to work. Magically, at one point it
> worked somewhat for directories with jpgs, css, js, etc files, but not
> directories with video files such as mkv, avi, etc.
>
> I've followed numerous sites instructing how to edit the web.xml in order to
> get directory listings to work and still nothing works.
>
> I'm developing in Eclipse, and running my web application, call it MyWebsite
> for simplicity, on a Tomcat 5.5 server.
>
> Here's one site I tried following to edit the web.xml:
>
> http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q12

Edit it how?  You haven't actually stated what you've tried.


p



> So I start up the server and run my website/webapp on it via:
>
> http://localhost:8080/MyWebsite
>
> This works just fine, but whenever I do:
>
> http://localhost:8080/MyWebsite/images
>
> This doesn't work, and yes there is an images directory in my web root which
> in eclipse is MyWebsite/WebContent. So the images directory is in
> MyWebsite/WebContent/images. This has become beyond frustrating and I really
> need some help with this please.
>
> I've also tried following the instructions at these sites:
>
> http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html
> http://linux-sxs.org/internet_serving/c581.html
> http://wso2.org/blog/sumedha/1096
> http://www.karakas-online.de/forum/viewtopic.php?t=9784
>
> They're all relatively the same but nothing I do works! Please help!!
>
> Thanks,
> -Brad
>


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


Re: how to do directory listing in tomcat 5.5

Posted by Hassan Schroeder <ha...@gmail.com>.
On Tue, Mar 16, 2010 at 11:54 PM, Brad Lajoie <bl...@gmail.com> wrote:

> ... but whenever I do:
>
> http://localhost:8080/MyWebsite/images
>
> This doesn't work, and yes there is an images directory in my web root which
> in eclipse is MyWebsite/WebContent. So the images directory is in
> MyWebsite/WebContent/images. This has become beyond frustrating and I really
> need some help with this please.

Wait, what? You have a path "/a/b" and you're trying to access that
resource as path "/b" and it doesn't work?

And this seems surprising?

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

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