Announcement Announcement Module
No announcement yet.
Can'r run wedding tutorial Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can'r run wedding tutorial

    I'm quite impressed with Spring Roo but I must be missing something in the way.
    I have followed every step of the Getting Started tutorial but every time I try to run mvn:tomcat I get:
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building wedding
    [INFO] task-segment: [tomcat:run]
    [INFO] ------------------------------------------------------------------------
    [INFO] Preparing tomcat:run
    [INFO] [aspectj:compile {execution: default}]
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 2 resources
    [INFO] [compiler:compile {execution: default-compile}]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [tomcat:run {execution: default-cli}]
    [INFO] Skipping non-war project
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3 seconds
    [INFO] Finished at: Mon Feb 01 11:51:23 BRST 2010
    [INFO] Final Memory: 14M/26M
    [INFO] ------------------------------------------------------------------------

    I undestand that the maven goal is not finding any wars and therefore quiting without running the webapp.
    I wonder if there's any maven related configuration to be done prior to running Roo. I'm new to maven and I'm not sure where to look, so any help is appreciated.

    Gabriel Miró
    Application Developer - Brazil

  • #2
    A quick follow-up: Looking at the project generated pom, I found :
    <project xmlns="" xmlns:xsi="" xsi:schemaLocation="">

    Shouldn't it be setting packaging to war instead? I changed it manually (something I hoped not to do often) to war and suddenly the tomcat:run starts the embedded Tomcat..although I only get blank screens.



    • #3
      Roo projects start with jar packaging because not all projects require a Web UI and therefore war packaging.

      Roo will change your packaging configuration in the pom.xml as soon as you start creating web artifacts (ie use any of the 'controller' commands). More specifically, as soon as Roo detects the presence of @RooWebScaffold it will copy web artifacts and change the pom file.