java - Tomcat 404 for a folder in webapps -


i have folder called attachments in webapps folder in apache tomcat directory, in need save files , images. when i'm giving local path i.e. in c:/ files needed being saved in correct location.

however need load these images server @ runtime i'm trying access image localhost url /attachments/img.png. image not being found (404 error).

i tried opening tomcat's manager see if attachments listed. there when click 404 error being thrown too. other deployed web applications being found.

what cause of this?

you cannot create folder in $catalina_home/webapps , access web browser.

webapps folder supposed home web applications proper j2ee web app directory structure e.g. web-inf/web.xml, web-inf/classes, web-inf/lib, meta-inf etc.

read more web application directory stricture


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -