Results 1 to 3 of 3

Thread: formal process for roo-ifying an existing maven web-app

  1. #1
    Join Date
    Aug 2008
    Posts
    2

    Default formal process for roo-ifying an existing maven web-app

    Is there a formal way to introduce an existing application to Roo? I have a web app originally created via maven-archetype-webapp. I would like to resurrect it using Roo but I find that I need to manually create various spring artifacts as I attempt to
    HTML Code:
    roo> install
    . For example, attempting to
    Code:
    roo> install web flow
    I see
    Code:
    roo> install web flow                                               
    Created SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-webflow.xml
    Managed SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-webflow.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/foo-app-servlet.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/urlrewrite.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/jsp
    Created SRC_MAIN_WEBAPP/WEB-INF/jsp/index.jsp
    Managed SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo manage SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/jsp/index.jsp
    Undo create SRC_MAIN_WEBAPP/WEB-INF/jsp
    Undo create SRC_MAIN_WEBAPP/WEB-INF/urlrewrite.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/foo-app-servlet.xml
    Undo manage SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-webflow.xml
    Undo create SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-webflow.xml
    Unable to obtain required element '/web-app/filter-mapping[filter-name='httpMethodFilter']' from element '[web-app: null]'
    This is leading me to believe that I'm doing something incorrectly - shouldn't Roo's install commands be creating these for me? Any ideas? Thanks

  2. #2
    Join Date
    Aug 2008
    Posts
    2

    Default Workaround was to remove exiting web.xml

    So my workaround was to remove the existing web.xml and rerun roo>install web flow. Is this roo's expected behaviour? The presence of an existing web application conflicts with roo>install web flow?

  3. #3
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    @seanp33,

    Roo ships with a preconfigured web.xml template. When it needs to manage the web.xml (add/edit/remove new elements) it does expect it's own web.xml. In this case it looks for the installed httpMethodFilter (which is needed for REST support in Spring MVC) and cannot find it.

    I guess we can make this a little more lenient though.

    -Stefan

Tags for this Thread

Posting Permissions

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