Announcement Announcement Module
Collapse
No announcement yet.
How to remove GWT and go back to Spring MVC Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to remove GWT and go back to Spring MVC

    I had a working (very simple) Roo project that I was happy with. Then I made the mistake of trying to add a GWT front end because it was supposed to be as easy as "gwt setup". Long story short, the project could not even compile once I ran "gwt setup", so I decided to remove it and go back to Spring MVC.

    I could not find any posts on this in the forum, so I thought I would offer up the steps I used to remove GWT. A simple "gwt remove" command would be a nice addition to Roo.

    1. Delete all generated source from src/main/java/**/gwt
    2. Remove GWT dependencies from pom.xml
    3. Remove GWT servlet from web.xml
    4. In webmvc-config.xml, change

    Code:
    <mvc:view-controller path="/" view-name="/ApplicationScaffold.html"/>
    to
    Code:
    <mvc:view-controller path="/" view-name="index"/>
    5. From the Roo console, run: perform clean
    6. mvn tomcat:run

    Thanks

  • #2
    Running into some issues

    I was running into a similar issue when I was trying to remove GWT from my project. The post helped me a lot.

    what I figured out can be removed completely are following folders in the top package directory:

    client
    server
    shared

    but be careful if you have for example build you controller within one of those directories you shouldn't delete them....

    It's just a small hint, because I was running into a log of compile errors.

    Comment

    Working...
    X