aspose file tools*
The moose likes Tomcat and the fly likes Images folder in a webapp on Windows Server 2003 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Images folder in a webapp on Windows Server 2003" Watch "Images folder in a webapp on Windows Server 2003" New topic
Author

Images folder in a webapp on Windows Server 2003

Graham Greene
Greenhorn

Joined: May 17, 2007
Posts: 5
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

Joined: Apr 30, 2003
Posts: 820

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)



 
 
subject: Images folder in a webapp on Windows Server 2003