title: HTTP put method causes 404
body: <p>I'm trying to use REST for some minor operations.<br>
  the Get operation and Post operation work just fine, only the PUT operation gives me issues.</p>
  
  <p>I am working with 2 dispatchers (one that maps to "/rest/<em>" and one that maps to "/web/</em>" and as far as i'm aware my config files are correct (else the rest wouldn't work either?).</p>
  
  <p>To test I use a chrome plugin called Postman btw.</p>
  
  <p>At the moment I'm using only one rest controller:</p>
  
  <pre><code>@Controller
  public class RestController {
  
  @Autowired
  BlogPostServiceImp blogPostService;
  
  @RequestMapping(value= "/getPosts", method = RequestMethod.GET, produces = "application/json")
  @ResponseBody
  public Collection&lt;Post&gt; getposts()
  {
      return blogPostService.getPosts();
  }
  
  @RequestMapping(value = "/post/{uername}/{description}/{speciality}/{url}", method = RequestMethod.PUT)
  public void addPost(@PathVariable("username") String username,
                      @PathVariable("description") String description,
                      @PathVariable("speciality") String speciality,
                      @PathVariable("url") String url)
  {
      Post p = new Post(blogPostService.getId(), "2014", username, description, speciality, url);
      blogPostService.addPost(p);
  }
  
  }
  </code></pre>
  
  <p>As i said earlier, the GET request works but the PUT returns a 404.</p>
  
  <p>edit: the logfiles from glassfish confirm this:</p>
  
  <p>[2014-10-30T14:28:21.180+0100] [glassfish 4.1] [WARNING] [] [org.springframework.web.servlet.PageNotFound] [tid: _ThreadID=30 _ThreadName=http-listener-1(1)] [timeMillis: 1414675701180] [levelValue: 900] [[
    No mapping found for HTTP request with URI [/MvcSpringBlogREST/rest/post] in DispatcherServlet with name 'dispatcher2']]</p>