Results 1 to 3 of 3

Thread: Can'r run wedding tutorial

  1. #1
    Join Date
    Feb 2010
    Posts
    23

    Default 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] BUILD SUCCESSFUL
    [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.

    Regards,
    Gabriel Miró
    Application Developer - Brazil

  2. #2
    Join Date
    Feb 2010
    Posts
    23

    Default

    A quick follow-up: Looking at the project generated pom, I found :
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.wedding</groupId>
    <artifactId>wedding</artifactId>
    <packaging>jar</packaging>
    <version>0.1.0-SNAPSHOT</version>
    <name>wedding</name>

    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.

    Regards,
    Miro

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

    Default

    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.

    HTH,
    Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

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
  •