Announcement Announcement Module
Collapse
No announcement yet.
No mapping found for HTTP request with URI Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 10:58 AM. Reason: Include spring verison

  • #2
    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!

    Comment

    Working...
    X