• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Images folder in a webapp on Windows Server 2003

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)



 
reply
    Bookmark Topic Watch Topic
  • New Topic