Skip to content →


That’s a terrible blog post title, I know. Nevertheless, I just burned 90 minutes trying to figure out why a simple Spring MultiActionController setup left me with an error: “No request handling method with name ‘list’ in class.” Google was little help, so I resorted to Bing.

Eventually, I found a buried forum response with my exact problem, I had referenced the wrong package’s type! If you’re running in to this, make sure you do this:

import org.springframework.web.servlet.ModelAndView;

and not this:

import org.springframework.web.portlet.ModelAndView;

This will teach me to be more mindful of what Eclipse decides to add for me automatically.

Published in tech


  1. Carol Raj

    Carol Raj

    Oh God..
    I was not able to figure out what was wrong with my code..
    I struggled for almost an hour..
    And Thanks Nick I got d answer..
    Have to be very careful while selecting classes..

  2. Glad I could help!

  3. Anders


    thanks as well, aaargh!

  4. rudresh


    Thanx a lot :-)

  5. Thanks Nick…this was a real stupid kinda mistake we done. Blindly taking eclipse help :-)

Leave a Reply

Your email address will not be published. Required fields are marked *