Announcement Announcement Module
No announcement yet.
404 for static web assets Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 404 for static web assets

    Hi -

    I'm trying to debug the petclinic application with the tc server. The application mostly works, but the static assets are returning 404, images, html and css.

    I've looked in the tc server temp directory and can see that the assets are there at the web root. However, they are not available when I debug the application. For example, the pets.png logo shown on the welcome.jsp is 404.

    The jsp page uses the spring:url. I am assuming I'm simply missing something basic. Thanks.


  • #2
    Update - I've added the static directory that was listed in the web.xml as /static/* and have copied the images folder that was at the root. This works fine, but I'm not sure why it was not in samples repository this way?

    I'm new to servlet mappings and so I'm wondering if I'm not doing properly? Thanks.