Results 1 to 2 of 2

Thread: First example from spring documentation

  1. #1
    Join Date
    Dec 2009
    Posts
    4

    Default First example from spring documentation

    Hello,

    I have a little issue about first example from spring documentation. Dependency Injection. I downloaded project (http://svn.springbyexample.org/core/...on/tags/1.0.1/ basic-dependency-injection) and import it in eclipse. In eclipse I have installed M2Eclipse and configured Tomcat 6 server.
    Now I run maven clean, package, install ant when I try to run project (mvn tomcat:run) eclipse print me message:
    Code:
    [INFO] --- tomcat-maven-plugin:1.0-beta-1:run (default-cli) @ basic-dependency-injection ---
    [INFO] Skipping non-war project
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5.159s
    [INFO] Finished at: Sun Apr 25 14:03:51 CEST 2010
    [INFO] Final Memory: 5M/16M
    [INFO] ------------------------------------------------------------------------
    And application is not started, what am I doing wrong, how to run this example?

    PS
    Ok, I understand that this project create *.jar and not *.war but I still don't know how to run this application?
    Last edited by 1110; Apr 25th, 2010 at 07:15 AM.

  2. #2
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    467

    Default

    This example is intended to be run as a standalone class, not within a web container. The "MessageRunner" class has a "main" method.

    The following link mentions this: http://www.springbyexample.org/examp...plication.html

Posting Permissions

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