Results 1 to 2 of 2

Thread: No mapping found for HTTP request with URI

  1. #1
    Join Date
    Apr 2010
    Posts
    11

    Default No mapping found for HTTP request with URI

    I have read through many of these threads that are similar to mine, but none of the solutions offered fix my issue. Basically none of my css or images are being handled. The error specifically states:
    Code:
    WARNING: No mapping found for HTTP request with URI [/app/img/bg.gif] in DispatcherServlet with name 'app'
    Here is my current web.xml file:

    Code:
    <servlet>
      <servlet-name>app</servlet-name>
      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    
    <servlet-mapping>
      <servlet-name>app</servlet-name>
      <url-pattern>/</url-pattern>
    </servlet-mapping>
    My index.jsp file does a redirect:

    Code:
    <c:redirect url="/home" />
    Here's my directory structure:

    app
    +src
    +bin
    -war
    +css
    -img
    bg.gif
    -WEB-INF
    -jsp
    home.jsp
    web.xml
    app-servlet.xml
    index.jsp


    I am using Spring Framework 3.0.1.

    I have tried several changes, but just can't get my images or css to be handled correctly. Any ideas would be very welcomed!
    Last edited by bonezoo; Apr 21st, 2010 at 10:58 AM. Reason: Include spring verison

  2. #2
    Join Date
    Apr 2010
    Posts
    11

    Default

    Okay, i'm embarrassed! I had basically forgot to hit the F5 key within eclipse to update it that there were images in the 'img' directory. No judging!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •