Results 1 to 4 of 4

Thread: is there a MVC "reset" ?

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    66

    Default is there a MVC "reset" ?

    I have a situation. I have spent time developing the domain for a Roo project. then, I did a "web mvc all"....ok, ran fine.

    Upon performing various development tasks, I seem to be in the situation where the web scaffolding is all mixed up. I tried removing all the "controller" classes and, then, performed "web mvc all" again. The project, upon loading in Tomcat, results in tons of exceptions from Spring. Obviously, many things are out of sync in the Roo project.

    Is there any way of "reseting" the MVC part of the Roo project? Ideally, I would like to get the project to a state where I can just do "web mvc setup" and start over again with a clean slate.

    Thanks, Edwin

  2. #2
    Join Date
    Oct 2012
    Posts
    9

    Default

    thats something i need also from time to time...
    One solution for this is to perform backup command in spring roo shell.(when everything is working fine)

    after you can overwrite the files with the backup files. Works.

  3. #3
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    BACK UP FIRST

    1. Remove src/main/webapp
    2. Change pom.xml's project type to jar
    3. Remove any of your scaffolds / web stuff
    4. restart the Roo shell
    5. You should be able to re-run web mvc setup.

    Ken
    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

  4. #4
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    66

    Default

    Quote Originally Posted by krimple View Post
    BACK UP FIRST


    3. Remove any of your scaffolds / web stuff


    Ken
    Thanks for the quick reply. That's great. Just a little clarification, if I may. What exactly does the above point (#3) mean?

    Thanks, Edwin

Posting Permissions

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