0

I used tomcat 7 for deploy my war file. It contains various images, css and js file.

I configure my tomcat on port 8080. Everything goes fine but I don't know why these content not serve by tomcat. It gives 404 not found error.

Directory Structure

My Directory Structure

And I hit this below url

http://localhost:8080/images/jackson2.png

When I put these images outside ROOT folder to inside webapps/examples/ then it works fine.

Now what is wrong with it ? It there anything I missed ? I could not understand the issue ? Help me

Kushal Jain
  • 3,029
  • 5
  • 31
  • 48

1 Answers1

0

Perhaps check that tomcat and/or the image files have the correct permissions set, I'm not too sure how to go about it on windows, depending on which version your running it could be a UAC issue, you can try looking here: https://www.mulesoft.com/tcat/tomcat-windows. You can try stopping tomcat, remove the work and temp directories, then starting tomcat.

Jaxon
  • 337
  • 1
  • 3
  • 11