Results 1 to 5 of 5

Thread: PageNotFound NoHandler

  1. #1
    Join Date
    Mar 2007
    Posts
    7

    Default PageNotFound NoHandler

    I am new to spring and am having a problem resolving a page for a view. I have used the resource bundle resolver as well as the internalresource view resolver. Neither have worked and I must have some other problem. I am getting the following error:

    org.springframework.web.servlet.PageNotFound.noHan dlerFound() No mapping for [/Spinnaker/WEB-INF/views/home.jsp] in DispatcherServlet with name 'Spinnaker'

    org.springframework.web.servlet.PageNotFound.noHan dlerFound() No mapping for [/Spinnaker/404.jsp] in DispatcherServlet with name 'Spinnaker'

    The url /Spinnaker/index.html goes to the controller, where the view "home" is trying to be resolved.

    the home.jsp is in WEB-INF/views

    THe web.xml has *.jsp and *.html mapped.

    Thanks in advance for your help!!

  2. #2

    Default

    Quote Originally Posted by dhook View Post
    The url /Spinnaker/index.html goes to the controller, where the view "home" is trying to be resolved.

    the home.jsp is in WEB-INF/views

    THe web.xml has *.jsp and *.html mapped.
    Can you pls paste the context mapping and the controller code where you render the model?

    Regards,
    Anshumn

  3. #3
    Join Date
    Mar 2007
    Posts
    7

    Default Additional Code

    Thank you for your help. Here is some of the code.

    The IndexController has rhe following code, where the model is a map with some parms and implments the AbstractController.

    return new ModelAndView("home", "entity", model);

    The context mapping is as follows.
    =======================
    <bean id="viewResolver" class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
    <property name="viewClass" value="org.springframework.web.servlet.view.JstlVi ew"/>
    <property name="requestContextAttribute" value="requestContext"/>
    <property name="prefix" value="/WEB-INF/views/"/>
    <property name="suffix" value=".jsp"/>
    </bean>


    Here is the URL MAPPING
    ================
    <bean id="publicUrlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="mappings">
    <props>
    <prop key="/index.jsp">indexController</prop>
    <prop key="/index.html">indexController</prop>
    </props>
    </property>
    </bean>

    Thanks again for your help!!

  4. #4

    Default

    The code snipplets look fine. But error certainly looks like a case of configuration problem.

    Running out of ideas... Have you tried changing to some other type of controller - you may try SimpleFormController?

    Pls let me know whether you have already found the problem.

    Regards,
    Anshumn

  5. #5
    Join Date
    Mar 2007
    Posts
    7

    Default Other Controllers

    I will try some other controllers to see if they work, but my guess is not. I tried the bundled resource viewer as well - same result. I will keep trying to see what I find

    Thanks....

Posting Permissions

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