So I already set listings to true and tomcat still does not show my directory. I also restarted the server numerous times but still same effect.
views:
63answers:
1
+1
A:
Assuming you've edited the web.xml in TOMCAT_HOME/conf
Below is a scenario I have come across which doesn't show the directory listing
You've got a <servlet-mapping>
in your individual webapp's web.xml with a
<url-pattern>/*</url-pattern>
This goes off to execute the servlet in your webapp and not the DefaultServlet in the TOMCAT_HOME/conf, when you request for http://localhost:8080/mywebapp/, and hence it does not fire the directory listing
JoseK
2010-10-01 06:43:55
but i don't have a xml yet for my webapp. just pure js and jsp files.
ice3d
2010-10-01 14:39:58
you dont have a WEB-INF/web.xml in your webapp?
JoseK
2010-10-01 16:05:18
Yup. Based from what I read, it should be fine because the conf/web.xml is the global right? I am using resin before trying to transfer to tomcat. So... there's no really web.xml in resin.
ice3d
2010-10-01 16:41:03
@ice3d: are you using the URL including the trailing slash? http://localhost:8080/mywebapp /
JoseK
2010-10-02 15:51:26
Yes. I can access files using localhost:8080/mywebapp/home.jsp but cannot access directory using localhost:8080/mywebapp/
ice3d
2010-10-03 01:59:16