Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Images folder in a webapp on Windows Server 2003

 
Graham Greene
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Linux, I can simply place an images folder in webapps/my-app/images and then access this images folder by going to http://localhost:8080/my-app/images

But on Windows server, if I place the images folder in the same location in the Tomcat directory, and then when I go to the same URL, I get a a 404 error.

Are there any special permissions that I have to give the folder in Windows?
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your web.xml file in %CATALINA_HOME%\conf\
(that is, the web.xml for your tomcat installation and not an individual web application)
the following init params for the Default Servlet enable directory listings. These should work the same in windows and linux (maybe your linux install is different for some reason. I think true used to be the default and now false is the default)



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic