• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Problem with Spring handlers

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Sirs et Madames,
Am brand new to Spring and am working through an example in the book Beginning Spring Framework 2 (a Wrox title). I am following their instructions to the letter, they have provided source code which I have compiled using maven, ran it , and it works fine, no errors. However once I follow additional instructions to add a feedback form to the application which involves creating a jsp page, a FeedbackFormController.java and a command class Feedback.java plus registering the controller with the DispatcherServlet, once I have built and deployed the WAR file when I try loading the webpage (http://localhost:8080/pixweb-0.0.1/feedbackform.htm) i get the following error message

java.lang.IllegalStateException: Cannot map handler [com.wrox.beginspring.pix.web.PictureUploadController] to URL path [/.proxy165*]: There is already handler [com.wrox.beginspring.pix.web.CreateAlbumController@1151934] mapped.

I have am at pains to understand why this could be, especially seeing as I have neither touched PictureUploadController.java, CreateAlbumController.java nor either of their corresponding registration mappings in DispatcherServlet. When does this error generally occur?

Would greatly appreciate any help in this matter.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you show us your context file ? (the xml file with the beans definitions)
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure Christophe, the context file is as below:



Hope this helps, and once again, thanks for any help recieved
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic